Yes but I can't stop the event afterwards. This page illustrates what I want to do https://developer.mozilla.org/en/DOM/event.preventDefault
On Sep 25, 2:41 pm, daniel <[email protected]> wrote: > make sure you use ClosingHandler and not CloseHandler... > if a ClosingEvent arises set a message on theevent- this will cause > the browser to show a dialog with your message where the user have to > confirm that he wants to leave the page > > On 25 Sep., 16:22, Marcelo Sena <[email protected]> wrote: > > > Hi, I have a classical situation where the user is trying to navigate > > away from a page while some of his works are not saved. How do I stop > > him from doing that. I tried to use the ClosingHandler, but unlike the > > deprecated closing Listener it does not give me the option to stop the > >event. > > Help :( --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
