What Xenon mentioned is correct.
You can not detect browser closing via javascript either. You can only detect window closings (browser window ie) but if you apply the hack in this event people who opens more than 1 window in your site will have very hard time. Besides your hack will be useless when user turned off javascripting. I'd say forget the hack or stick with Sylvus's suggestion
|