I have a binding to the beforeUnload event. If I try to click a link, reload or close a tab or navigator, the application will ask for confirmation before leaving. This is the desired behavior.
But if you press the back button or the back space outside the input, there will be no confirmation.
At the beginning of html:
window.onbeforeunload = function() { if (confirmEnabled) return ""; }
And I use Gwt PlaceHistoryMapper.
What am I missing? Where did I forget to see?
Thanks!
gwt onbeforeunload
Maxime ARNSTAMM
source share