How does one execute code when the user closes the browers window by clicking on the top right corner [x]. I need to log out user and do a database write when the user closes the brower. I do these to clean up the database when the user exits before actually logging out.
I was told to user pageX, but does not seem to work either. Again, I am having trouble with firefox.
Thanks.
I was told to user pageX, but does not seem to work either. Again, I am having trouble with firefox.
Thanks.
Comment