I have one problem, I have a javascript
function which I want to use when the browser is closed, How can I detect that a browser is being closed
?
I have made some research on that I got solution like onunload
or beforeunload
but both the functions are being executed when I am reloading the page, Is there any solution that I can differentiate reload and browser/tab close.