function doUnload() { if (window.event.clientX < 0 && window.event.clientY < 0) { alert("Window is closing..."); } } its also not working ... <body önunload="doUnload()">
<body onbeforeunload="javascript:alert('window is closing...');">
null
false
window.event.clientX
0, 0
$(document).ready=function(){ window.onunload=function(){alert("dfgfdg");}; };
function doUnload() { alert("Window is closing..."); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)