<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>