您的位置:首页 > 其它

当页面跳转或者关闭窗口时弹出提示窗口

2006-12-13 17:47 323 查看
让IE右上角的“关闭”按钮失效
实例1即可实现。
-----------------------------------
<script language=javascript>
window.onbeforeunload = function()
{
if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey||event.ctrlKey)
{
window.event.returnValue = "";
}
}
</script>

2----------------------
没有关闭按扭
window.open("","","fullscreen=3")

3----------------------
屏蔽alt+f4
if (window.event.altKey && k == 115){
return false;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: