On Monday, January 21, 2013 6:31:12 PM UTC+1, Darsha Sai wrote: > > Hi , > > I want to display alert message when user click on browser back > button/forward button/refresh buttons if form is dirty. > > How to capture browser back button/forward button in gwt ? >
You can't. You can only react to navigation, either within the app (History.addValueChangeHandler) or out of the app (Window.addWindowClosingHandler). There are APIs that wrap them both though: adding a PlaceChangeRequestEvent.Handler to the eventbus if you use the PlaceController, or implementing mayStop() in your activity if you use activities. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Ie42NfcL2loJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.