In the link below, I made ββan history.pushState example.
But if you click on the links and then try to go back or forward, you will see that don't works. You know tell me why? There are good practices? Can you help me?
In the link below, I made ββan history.pushState example.
But if you click on the links and then try to go back or forward, you will see that don't works. You know tell me why? There are good practices? Can you help me?
Not a solution for your specific question but I think it's worth mentioning: There's a very popular jQuery / Prototype / Mootools plugin that wraps the HTML5 history APIs nicely: https://github.com/browserstate/History.js/
Also do check out bbq plugin. http://benalman.com/projects/jquery-bbq-plugin/
It's because the back and forward don't work with ajax.
You might try storing the previous page loaded somewhere and then have the back and forward links load your own history handler.