I am trying to execute some javascript code only when a window is closed, but not when there is a transition from one page to another. onUnload is the same for both. Is there something that I can access that changes when a user closes the window, but not when he page just changes?
I am trying to execute some javascript code only when a window is closed, but not when there is a transition from 1 page to another. onUnload is the same for both. Is there something that I can access that changes when a user closes the window, but not when he page just changes?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.