1

I want to track event which fire on, when user hits back button on the browser. I found many post related this but all suggest use of .onbeforeunload event. but this event also fire on, when page is refresh or browser window is closed.

If there is any idea to track only browser back event. Thanks for your help...!!!

Ishan Jain
  • 7,501
  • 9
  • 45
  • 72

1 Answers1

1

You can use History.js: http://balupton.github.io/history.js/demo/

History.js gracefully supports the HTML5 History/State APIs (pushState, replaceState, onPopState) in all browsers

grigno
  • 3,124
  • 4
  • 32
  • 45