Window.close without warnings
Posted on 2008-10-15
I open a window from
<a id='pm' href='mypage.asp'...><img ..></a>
I have a close button (image) on mypage.asp with
<img src="Close.gif" name="close" alt ="Close Window" style="cursor: hand" onclick="Window.close()">
But I'm getting the 'ol "The webpage you are viewing is trying to close the window...." prompt.
The window is opened by a link, why do I get this message? Can I do it without the prompt?
At the very least, I'd like my own message.