<div class="codetitle"> <span><a style="CURSOR: pointer" data="872" class="copybut" id="copybut872" onclick="doCopy('code872')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code872"> <br><script language="javascript"> <>windowonbeforeload.window. function () { <BR>var n = window.event.screenX - window.screenLeft; <BR>var b = n > document.documentElement.scrollWidth - 20; <BR>if (b && window.event. || window.event.altKey) { <BR><br>try { <br>var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); <BR>xmlhttp.open("POST", "LogOut.aspx", false); <BR>xmlhttp.send(); <BR>//return true; <BR>} <BR>catch (e) { <BR>alert('delete user account error message:' e.message); <BR>} <BR><br>//return "你確定要退出系統嗎?退出請按'離開此頁'"; <br>} else { <BR>//alert("是刷新而非關閉"); <BR>} <BR>} <BR><br></script> <br><br> </div>