Do something before closing the browser window

Posted by Adam Kiss on Stack Overflow See other posts from Stack Overflow or by Adam Kiss
Published on 2010-05-12T09:16:23Z Indexed on 2010/05/12 9:24 UTC
Read the original article Hit count: 213

Filed under:
|
|

Hello,

we have an web-application built in flash (it's actually just getting built :D) where is very important to be notified, when user closes his window.

Since it's in flash, we do not worry about Javascript, we do not support non-javascript users.

What is the safest (meaning it's 100% sure it gets called) X-browser way to call php script to close session, make some db changes, etc.?

Thank you

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html