<script language="javascript">
 //关闭窗口时自动退出
 function  window.onbeforeunload(){
  if(event.clientX>360&&event.clientY<0||event.altKey){  
   //alert("dddddddddd");
   Logout();
  }  
 }  
 function  Logout(){  
     try{  
     xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");  
     }catch(e){  
     xmlHttp = new XMLHttpRequest();  
     }  
     //数据传输,flase为非异步方式
     xmlHttp.open("post","enter.asp?Active=Logout",true);  
     xmlHttp.send(null);  
 }  
</script>  

相关文章:

  • 2022-01-03
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-05-19
  • 2022-12-23
猜你喜欢
  • 2021-07-12
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2021-10-09
  • 2021-08-29
相关资源
相似解决方案