PDA

View Full Version : customize browser close message in IE?



salmondavid888
17 Oct 2011, 5:27 AM
i am using GWT. on window close we get browser provided message" Are you sure you want to navigate away from this page?". i want to replace the message with my own message. please help me. below is my code.

Window.addWindowClosingHandler(new Window.ClosingHandler() { @Override public void onWindowClosing(final Window.ClosingEvent closingEvent) { closingEvent.setMessage("some message."); } });

micgala
18 Oct 2011, 3:55 AM
Hi. This is more related to GWT then GXT....
But anyway.
You cannot change the default message.
The only thing you can do is display ALSO a custom message... you do so exactly by calling the setMessage....

So you are probably seeing "some message." in the dialog.
That is as much as you can get.