I want to detect Browser close(Not the window(tab)) and run a script. I tried
onbeforeunload but they are working fine with tab close but if I close entire browser nothing happens. How can I do this? Thanks..!
I just want to do a server side cleanup on any these kind of event. Is there any way to do That ?
Based on the question as asked, 'how can I [access the browser-close event]?' the only possible answer is: you can't; it's not possible. Nor, for security reasons, should it be.
I want to do a server side cleanup for any this kind of event. Is there any possible way to do it?
onbeforeunload, and having that script tidy up any sessions that might still be open.