Im using History.js ( click ) with jQuery in my code.
When loading new content via ajax, I use:
History.pushState({my:stateobject},"newtitle","supernewurl");
This seems to work, as the URL is updated in the browser.
However, I do not understand where I can connect my code whenever the back or forward button is pressed. What method / event is used for this?
Joey
source share