Cross browser window close event

Posted by slik on Stack Overflow See other posts from Stack Overflow or by slik
Published on 2010-05-31T17:04:35Z Indexed on 2010/05/31 17:13 UTC
Read the original article Hit count: 279

Is there a solution for cross browser event. I need to check if user closes their window and to throw an ajax request to my database to sign them out.

I've looked everyone but most cases its not working in all browsers. Anyone have a solution? Or Alternative on how to do this perhaps a conditional statement depending on the browser?

Thanks!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery