1 window.onbeforeunload = function() 2 { 3 var n = window.event.screenX - window.screenLeft; 4 var b = n > document.documentElement.scrollWidth-20; 5 if(b && window.event.clientY < 0 || window.event.altKey) 6 { 7 delAllCookie(); 8 } 9 }
1 window.onbeforeunload = function() 2 { 3 var n = window.event.screenX - window.screenLeft; 4 var b = n > document.documentElement.scrollWidth-20; 5 if(b && window.event.clientY < 0 || window.event.altKey) 6 { 7 delAllCookie(); 8 } 9 }