开发者

customize window closing event message in IE?

开发者 https://www.devze.com 2023-04-13 08:12 出处:网络
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

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

精彩评论

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

关注公众号