Link to home
Start Free TrialLog in
Avatar of StevenJames
StevenJames

asked on

Window.close without warnings

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.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of pwrBall
pwrBall
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of StevenJames
StevenJames

ASKER

I used to use this so I knew about it at one time. LOL! I need a physical memory upgrade!

Thanks!
Works like a charm.