4

Is It possible to detect a click on a browser's back button using Jquery/Jquery mobile?

I have a small quiz application - I need to reset variables if the user clicks the phones back button mid way through playing the game.

Thanks for your time!

Cheers Paul

Dancer
  • 17,035
  • 38
  • 129
  • 206

1 Answers1

2

Nope. The page doesn't have access to the browser. This would be a massive security risk. You can add an onunload event to the page, but I really don't recommend this action (please).

Alex
  • 7,320
  • 1
  • 18
  • 31