我怎样才能得到一个网址更改提示 [英] how can i get a prompt on url change
本文介绍了我怎样才能得到一个网址更改提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Window.addWindowClosingHandler(new ClosingHandler(){
@Override
public void onWindowClosing(ClosingEvent event){
event.setMessage(Message);
}
});
请看 promt用户在退格和浏览器后台按gwt 我已经提到了其他方式。 / b>
欲了解更多信息,请看下面的帖子:
快照:
i am new in gwt . I want when a user press back button he get a alert that page will we refresh .mostly we see during typing on loose focus if user press back button his page get refresh and all value goes wash. how can we achieve this..
解决方案
Window.addWindowClosingHandler(new ClosingHandler() {
@Override
public void onWindowClosing(ClosingEvent event) {
event.setMessage("Message");
}
});
Please have a look at promt user on backspace and browser backbutton in gwt where I have mentioned other ways also.
For more info have a look at below posts:
Snapshot:
这篇关于我怎样才能得到一个网址更改提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文