Is there any way to detect mobile browser close event? I need to forcefully delete a cookie on browser close. I have already tried my luck with window.onbeforeunload
and window.unload
but they doesn't work for mobile browsers. Search on the web a lot but didn't get any solution.
Thanks in advance
I'm sorry but it's just impossible with Javascript... You can prevent the action of closing tab but not to do something when it will be close...
How to Detect Browser Window /Tab Close Event?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With