1

Is there a way to detect if the page load occurred from clicking the browser back button?

I have to take a different action on page load if it was due to user landing on the page by hitting the browser back button.

user3685509
  • 25
  • 1
  • 5
  • Possible duplicate of [How to check if the user can go back in browser history or not](https://stackoverflow.com/questions/3588315/how-to-check-if-the-user-can-go-back-in-browser-history-or-not) – Ami Hollander Feb 01 '18 at 05:47
  • Different. That question is to determine if the user can go back in history. I wanted to find out if the current page load happened for the user hitting the back button or not. – user3685509 Feb 01 '18 at 17:11

0 Answers0