Close window from JavaScript

Closing the window from JavaScript should be easy. However if the window was not opened using script the user will be prompted for permission to close the window. This can be irritating for the user end so a request you frequently encounter is to close the window without prompting for permission. I came across two interesting articles today, one that provides a technique for IE 6 and the other for IE 7. So here are the two posts:

IE 6 and IE 7

I've tested the IE 7 and it seems to work well.


Comments are closed

Search

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2012