This demo shows how to deal with HTML5 History API using history.pushState.
Click on tabs below, it will load content in page and add history entry in browser.