G
Guest
I'm doing a chat, if one user close the windows throw X button, I need one event to do an action (delete the user for example) how I can do it. In JavaScript exist onunload event, but it is executed when the page is submit.
Any help would be appreciate
Any help would be appreciate