Einzelnen Beitrag anzeigen
Alt 05.06.2014, 12:58   #1
JensL
Administrator
Site Admin
 
Registriert seit: 02.03.2010
Beiträge: 2.470
JensL befindet sich auf einem aufstrebenden Ast
"Close Window" / "Cancel"-button not working
This is primarily a security precaution of your browser. Although different browsers tend to handle this function slighty differently, it can be said, that a window can only be closed by the function window.close, which both buttons use, if it has previously been opened by the window.open function.

This means, if you create a link of the pattern
Code:
<a href="survey.link/uc/main/survey/" target="_blank">Survey</a>
it cannot be closed by either button.

Instead you will have open the survey via JavaScropt, as mentioned above.
Please note that, due to the fact that JavaScript, CSS, HTML and the likes are extensive stand-alone programming languages, we cannot offer support for these matters. Thus we cannot assist with the implementation, this tutorial is primarily meant to help you get started regarding why the buttons might not be working and how this could be solved.

IT would be recommendable to read up on the broad variety of documentation regarding these topics, e.g.

http://www.w3schools.com/jsref/met_win_open.asp
http://www.javascript-coder.com/wind...dow-open.phtml

A simple alternative that also allows you to configure all related parameters, might be trying out a pop-up generator, e.g.

http://www.textfixer.com/html/javasc...-up-window.php
JensL ist offline