I am trying to catch the close button event(X) at internet explorer 8.
i trying with follwoing code.but in that case i can detect tab button while it's close(X) is clicked.
Code:
function closeIt(){
if( !event) { event = window.event ; }
if (event.clientY < 0)
{
//event.returnValue = 'Are you sure you want to Quit?'
}
Leave a comment: