[摘抄] JS关闭窗口, IE7 不弹出提示的代码

这个方法引自: http://blog.csdn.net/Mark2Win/archive/2007/08/17/1748801.aspx 


在IE7 下, 用window.close() 关闭一个窗口, IE7 总是会弹出一个提示, 问是否关闭这个窗口, 烦都烦死了, 可以让它不弹出提示的代码如下:

    window.opener=null;
    window.open('','_top');
    window.top.close();


 

原文地址:https://www.cnblogs.com/Moosdau/p/908923.html