onUnLoad
Posted: Thu Apr 07, 2005 2:21 am
would it be possible to execute a MySQL query using the onUnLoad javascript event handler?
for example
The reason I ask is because if someone navigates away from this page or closes the browser, I want to remove their name from my database. I do not want it to be a time thing.. where like it deletes them if they have been inactive for so long. But rather a true indication of them being on the page or not.
for example
Code: Select all
<body onUnLoad="e;<? // mysql query // ?>"e;>