Hi Thiago. You can't set an onunload event handler for the parent
window due to browser security restrictions, but you can for the frame
in which your application is rendered in. Since the frame's view is
"unloaded" at the same time as the parent window, this handler should
trigger. Are you seeing differently?

- Jason

On Dec 1, 2:07 pm, Thyako <[EMAIL PROTECTED]> wrote:
> Hello.
>
> I tried several ways to set beforeunload or onunload, either via
> addEventListener and 'window' object, but nothing works, at least in
> Firefox and CodeRunner app.
>
> Is there anyway to use this or something similar?
>
> More specifically, I want to be able to make a request before the user
> exits the page.
>
> Thanks in advance.
> ~Thiago
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to