0

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?

Charuක
  • 12,953
  • 5
  • 50
  • 88
  • https://stackoverflow.com/questions/6903457/is-the-onbeforeunload-event-not-supported-on-iphone – Serg Chernata Dec 28 '16 at 15:52
  • It might not be possible. I'm certain about Iphone but it may work in Android, can't say for sure. Just add events on all the exit links (buttons, links etc) and save the data. – mfahadi Dec 28 '16 at 15:57

0 Answers0