Hi Guys,
Is there a way to trap the browser closing event from javacript. I don want to do this in Page Unload event or anything... it must be handled on clicking the browser close button..
is it possible??
Cheers
Ramesh Vel
Hi Guys,
Is there a way to trap the browser closing event from javacript. I don want to do this in Page Unload event or anything... it must be handled on clicking the browser close button..
is it possible??
Cheers
Ramesh Vel
No. You only have onbeforeunload
event, available as raw javascript (jquery doesn't include this event).
If you want to try it, try to post here an answer and, without pressing "post your answer" try to close the browser window.
This is the closest way to access the "close window" event.
Not really. Page unload event is all you have. And even that not always. It would provide the ability to interfere with user's wishes pretty bad.
You can't really do it but my question to you is for what reason would you want to capture that? Maybe there's an alternate way to solving your problem.