I use the following form on a popup window and don't get any alert messages
<form><input type="button" name="Exit" value="Close" onClick="javascript:exit()"></form>
<script>
function exit(){
close();
}
</script> It's not a lie if you believe it!
You can only close popup windows without the warning. To close all windows without warning you can use the X button on the top right corner of your window.
<script>
function doMyClose()
{
opener = this;
self.close();
}
</script>
<a href="JavaScript: doMyClose();">Close this window without the 'confirm close' dialog</a>
or inline version:
Code:
<a href="JavaScript: opener = this; self.close()">Close this window without the 'confirm close' dialog</a>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.