How can i detect browser close event?

I've tried something like:

$(window).unload(
  function(){
     alert("close");
     //stop event
     return false;
  }
);

Alert appears, but event continues...

Thx!

--
Unai Martinez
[EMAIL PROTECTED]
http://helusinfa.blogspot.com
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to