In this short series we will have a look at the HTML5 History API and its two methods called pushState and popState in order to create an Ajax based, SEO friendly website. The first (pushState) method allows us to replace the browser's url without reloading the page, by doing so we can have our links indexed by search engines, while using Ajax to process the request and replace the content of the page. The second method (popState) makes sure that our browser's Back and Forward buttons are functioning after the pushState method has been executed.
Sebastian Sulinski on
9th Mar 2012