网上找了很多资料,都没有实现,最靠谱的就是
在onbeforeunload里面计算右上角的坐标,然后鼠标在那里时提示,
但是当鼠标任务栏里邮件关闭的时候不行,请问有什么办法吗谢谢

解决方案 »

  1.   


    <body  onbeforeunload="event.returnValue= '你选择了退出,Are   you   sure? '">
      

  2.   

    <body  onbeforeunload="if(event.clientX<=0 && event.clientY<0) event.returnValue= '你选择了退出,Are you sure? '">
    这个防刷新的
      

  3.   

    window.onbeforeunload = function() {
      if (document.getElementById("Hidden1").value == "") {
      window.event.returnValue = "确定要离开?";
      }
      }
      function test() {
      document.getElementById("Hidden1").value = "1";
      }
      </script>
    OnClientClick="test()" 
      

  4.   


    请问这个OnClientClick="test()"应该放到那里呢