Try $(window).unload(...). Works for me on firefox. I think these docs are wrong: http://docs.jquery.com/Events/unload#fn
--Erik On 9/24/07, Trans <[EMAIL PROTECTED]> wrote: > > > I tried this: > > $(document).unload(function() { alert("Bye now!"); } ); > > But it doesn't seem to do anything. What am I doing wrong? > > (I'm using the latest version of jQuery.) > > Thanks, > Trans. > >