电脑技术学习

真正的禁止页面刷新,一旦刷新则自动关闭网页

dn001
<!-- 把下面代码加到<body>区域中 -->
<script>
window.onunload=e;
function e(){
closes.Click();
return;
window.close();
}
</script>
<OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object>
刷新页面就关闭窗口