1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| <script language="javascript"> window.onbeforeunload = function() { if(event.clientX>360 && event.clientY<0 || event.altKey){ logout(); } }
function logout(){ try{ xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e) { xmlHttp = new XMLHttpRequest(); } xmlHttp.open("post","test.php?sk=logout", true); xmlHttp.send(null); } </script>
|