Posts Categorized: Javascript


Quickie: IE and window.close()

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!