How to avoid the confirm dialog box “the web page you are viewing is trying to close the window” when trying to close IE popup?
+2
A:
Make sure the window you are trying to close is one you opened with JavaScript, and not the one the user arrived at your site with (complete with history they might want to go back through).
David Dorward
2010-01-17 11:25:37
A:
This hack used to work in IE, but not sure if it still does:
window.opener = window;
window.close();
einarq
2010-01-17 13:45:40