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();