faqts : Computers : Programming : Languages : JavaScript : Browser Settings

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

15 of 16 people (94%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

how to close the current window in IE by bypassing the close confirmation dialog
How can to avoid the confirmation dialog in IE when trying to close the window using javascript

Jul 20th, 2005 21:45
Kumar S,


When trying to close an window from javascript in IE, which is opened
manually,
a security warning “The web page you are viewing is trying to close the
window. Do you want to close this window? Yes|No ” is popping up. Is
there any possibility to close a window silently? Yes.
A simple hack i found on the web will help to get rid of this situation.
this.focus();
self.opener = this;
self.close();