6

Is it possible to detect that a user entered a page through using the history back button in his browser? Preferably I want to detect this action using polymer.

aries12
  • 370
  • 2
  • 18

1 Answers1

1

You could probably listen on the popstate event as documented here: https://developer.mozilla.org/en-US/docs/Web/Events/popstate

This should fire when the back button is clicked, history.back() is called, etc.

JJJ
  • 340
  • 1
  • 8