function
window.onbeforeunload(){
with (event)
if (clientX > document.body.clientWidth && clientY < 0 || altKey)
alert( " Close window! " )
else
alert( " Refresh window! " )
}
with (event)
if (clientX > document.body.clientWidth && clientY < 0 || altKey)
alert( " Close window! " )
else
alert( " Refresh window! " )
}