JavaScript无提示关闭当前页面窗口,兼容IE/Firefox/Chrome (Close the current page window without confirm by JavaScript, support all browsers)

Test by IE7/ Firefox 3.0/ Google Chrome

 

CloseDemo.htm

 

Note:

If you are using Firefox, please make sure your settings:

1.type "about:config" into your address bar, and enter.

2.find the key named "dom.allow_scripts_to_close_windows" make sure the value is True

OK, enjoy the code

 

你可能感兴趣的:(JavaScript)