<script   language="javascript"> 
window.onbeforeunload = function()

  var n = window.event.screenX - window.screenLeft; 
  var b = n>document.documentElement.scrollWidth-20; 
  if(b && window.event.clientY < 0 || window.event.altKey) 
  { 
   alert("是关闭而非刷新"); 
   window.event.returnValue   =   "";     //这里可以放置你想做的操作代码 
  } 

</script>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
  • 2021-09-05
  • 2021-12-05
  • 2021-12-25
猜你喜欢
  • 2022-01-15
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2021-06-17
相关资源
相似解决方案