how can i get a prompt on url change
问题 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.. 回答1: Try Window#ClosingEvent 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