title: How can I detect the back/forwards buttons being clicked when using History.js?
body: <p>Im using History.js (<a href="https://github.com/balupton/history.js" rel="noreferrer">click</a>) with jQuery in my code.</p>
  
  <p>When loading new content via ajax i use:</p>
  
  <pre><code>History.pushState({my:stateobject},"newtitle","supernewurl");
  </code></pre>
  
  <p>This seems to work since the URL is updated in the browser.</p>
  
  <p>However, I don't get it where I can hook up my code whenever a back or forward button is pressed. Which method/event is used for this?</p>