OK, so I want to interrupt the click of a back button and display a warning message - "By clicking back you will lose all of the information you have just entered! Do you wish to proceed?" - yes / no And the same for refresh...
Is this possible? -- purely with javascript.
I can't find anything that says it is...
Thanks for any help :)
PS. This isn't a request for an discussion on hijacking browsers... it's a bad idea. This is a web application situation where back and refresh break the app. I also have don't have full control over the app so redesigning it isn't an option either. Finally I can't hide the toolbar :) - I love this contract ....
[edit]Clarified with purely javascript[/edit]