I am yet to add full history support to my MVC application and would like a quick solution to prevent accidental navigation away from the application - made all the more likely for Mac users thanks to touch pad gestures.
My initial thought was to capture beforeunload events and to return a message to the user. This works fine, except I have a logout routine that redirects the user away from the MVC. I don't want to change this behaviour, but my understanding is that the only influence you have over beforeunload is setting the message displayed to the user, as this is a browser event.
Apart from implementing Ext.History support, are there any other suggestions?