1.

<script language=javascript>
window.onbeforeunload = function()
{
  if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
  {
    window.event.returnValue = "";
  }
}
</script>

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

3----------------------
屏蔽alt+f4
if (window.event.altKey && k == 115){
return false;
}


4。除了 woyingjie(killerJ)(假期,找兼职中)(http://www.killerj.tk) 给出的三种方法外, 再给你一个解决的思路:

<body onload="window.moveTo(0,-24)">

这样你就点击不到那个关闭按钮了 :)



屏蔽ctrl+w

   if (window.event.ctrlKey && k == 87)   //屏蔽 Ctrl+w
        window.event.returnValue= false;



相关文章:

  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2021-12-13
  • 2021-11-12
  • 2021-08-06
  • 2021-08-12
相关资源
相似解决方案