Tuesday, September 29, 2009

[jQuery] Re: window close function >_<

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 <robgbne@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.

No comments: