I have a web app and I want to avoid that someone accidentally press the back button on the phone, losing all the javascript data that was produced. I tried the window.onbeforeunload
aproach. It works at the desktop, but not in the phone.
Is there any way to do this?