<mce:script type="text/javascript"><!-- //关闭浏览器时执行的方法,注销用户 function window.onbeforeunload() { if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey) { var xmlhttp; if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); //FireFox、Opera等浏览器支持的创建方式 } else { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");//IE浏览器支持的创建方式 } xmlhttp.open("GET","/CMS/Userinfo.do?method=changeStatus&status=null",false); xmlhttp.send(); alert('adfds'); } } // --></mce:script>