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
  • 15,983
  • 37
  • 123
  • 200

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,244
  • 1
  • 17
  • 31