开发者

customize window closing event message in IE?

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.");
                  开发者_开发技巧  }

        });


you can not modify the dialog that is opened if you provide a string in the closing event.

The dialog is handled by the browser and can not be customized.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜