Or, if you're using 1.6, use Window.addCloseHandler (CloseHandler<Window> handler) or Window.addWindowClosingHandler (Window.ClosingHandler handler). The CloseHandler is used when the window closes and does not allow you to cancel the closing of the window. The ClosingHandler is used right before the window is closed, and it does allow you to cancel the closing of the window.
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/Window.html -DLH On Jun 9, 6:51 am, mars1412 <martin.trum...@24act.at> wrote: > Window.addWindowCloseListener() > > On Jun 9, 8:44 am, bhomass <bhom...@gmail.com> wrote: > > > which event should I capture to detect that the user is closing the > > browser window? this is issue warning if there are any dirty documents > > in one of the editors. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---