Unipark Forum

Unipark Forum (http://forum.unipark.info/forum/index.php)
-   tutorials (http://forum.unipark.info/forum/forumdisplay.php?f=317)
-   -   "Close Window" / "Cancel"-button not working (http://forum.unipark.info/forum/showthread.php?t=14056)

JensL 05.06.2014 13:58

"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


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:55 Uhr.