In that it handles the case where distinct independent (mutually unaware, even) portions of the page may want their own unload callbacks invoked, I'd say so.
2009/9/29 RobG <robg...@gmail.com>: > > > > On Sep 30, 11:21 am, -JD- <juhand...@gmail.com> wrote: >> Al cerrar una pagina necesito llamar a otra para poder hacer algunos >> cambios en mi DB. Intenté con esto: >> $(window).unload( function () { alert("Bye >> now!"); } ); > > Which is so much simpler than: > > window.onunload = function () { alert("Bye now!"); }; > > > -- > Rob -- Turtle, turtle, on the ground, Pink and shiny, turn around.