Click to See Complete Forum and Search --> : closing windows without warning messages
amrigo
08-24-2004, 11:13 AM
Hi
I would like my aplication to close a window with:
window.self.close();
but it always display a warning message like:
"Do you wish to close the window?"
Can i use : window.self.close(); and make sure that no warning message will be displayed? (just close)
Thank´s in advance
BillyRay
08-24-2004, 11:17 AM
This works for me:
opener = self;
self.close();
Although I have no idea if it will still work under XP/SP2 ;o)
Dan
amrigo
08-24-2004, 12:01 PM
Great ! It works for me too
Thank´s a lot....
steelersfan88
08-24-2004, 01:59 PM
The code BillyRay provided wil lnot work on the Mozilla browser. The message is a security warning, that should always be displayed.
amrigo
08-25-2004, 04:03 PM
i will research a code for mozilla do you know any code that works for mozilla
steelersfan88
08-25-2004, 04:20 PM
I don't know of any, although I will say that the security message should always come up.
Khalid Ali
08-25-2004, 07:29 PM
I am surprised that the code snippet posted above still works....it should not work in any IE6+ browsers as well in addition to Mozilla based browsers(Netscape etc)
BillyRay
08-26-2004, 03:56 AM
it should not work in any IE6+ browsers
Why shouldn't it? Is there a specific reason it shouldn't?
It certainly works in IE 6 under XP/SP1, anyhow.
Dan
Willy Duitt
08-26-2004, 11:30 AM
SP2 has supposedly fixed this...
Thus anyone using this method may as well plan on fixing their pages once SP2 has completely rolled out and until then expect to recieve continued reports that their page doesn't work..