You are here: irt.org | FAQ | JavaScript | Window | Q1769 [ previous next ]
I noticed there were several attempts to combat this situation in the faqs but none worked for me. Then I stumbled upon the fact that IE only asks for confirmation if window.opener is empty. The code below works beautifully on IE but I have yet to try it in other pertinent browsers.
myWindow = window.self; myWindow.opener = window.self; myWindow.close();
Submitted by Karl Greenhalgh