Blog

Quickie: IE and window.close()
Posted by Bill in Programming on 08.03.06

IE tends to do some funny things with its security settings. In particular, if your settings are high enough, window.close() will throw a warning or silently stop working entirely. This is definitely not our preferred behavior, and luckily, there’s an easy hack provided by FatTonny on the SitePoint Forums.

window.opener = window;
window.close();

That’s all there is too it! Happy coding!



Leave a Reply