IE页面无提示关闭,适合IE6以上
this is The Code:
<Script>
function WinClose()
{
window.opener=null;
window.close();
}
</Script>
<body onload="WinClose();">
<button onClick='window.opener=null;window.close();'>Close Window</button>
</body>
<Script>
function WinClose()
{
window.opener=null;
window.close();
}
</Script>
<body onload="WinClose();">
<button onClick='window.opener=null;window.close();'>Close Window</button>
</body>
作者:Apollo
出处:http://apollo.cnblogs.com/
如果您觉得本文对您的学习有所帮助,可通过“微信”或“支付宝”打赏博主,或者点击页面右下角【好文要顶】支持博主。