On 3 sep, 11:13, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is there a way in GWT to catch Window.onUnload event.

use a WindowCloseListener.

> I need that to detect when user navigates away from the page, but does
> not close the browser.

This is not possible in JavaScript, there's only an 'unload' event, no
'close' event or similar.

> I have written a native implementation, but are there any plans to add
> Window.addUnloadListener() functionality?
> Or am I missing something?

Window.addWindowCloseListener *is* relying on beforeunload and unload
events.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to