Click to See Complete Forum and Search --> : avoiding window.close() prompt


SniperX
04-07-2003, 08:34 AM
Is there any way to avoid the MS windows prompt - .... close this window? Yes or No...

It is quite annoying

Regards and Thanx in advance
the one the only sniperx:cool:

gil davis
04-07-2003, 08:57 AM
Is there any way to avoid the MS windows promptIf you didn't open the window using window.open(), then you are not allowed to close it without getting the user's permission. It's a security thing (think of all the history the user loses when you close his window).
It is quite annoying
Probably about as annoying to the user as your trying to close a window you didn't open in the first place.

David Harrison
04-07-2003, 09:15 AM
Just out of interest are you trying to write a password script, whereby if they enter the wrong password so many time the window closes?
Or is it just to annoy.

SniperX
04-08-2003, 12:39 AM
Thanks ms davis the window.open() and window.close() works now
thanks again:D