A practical minimal example of HTML5's history functionality
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
README.md
index.html
one.html
two.html

README.md

HTML5 History Example

Install this on a web server and visit one.html. Click the link on the page and observe that successive pages are loaded through AJAX and the history changed through HTML5 pushstate.

Live example

http://cairo140.github.com/html5-history-example/one.html

Gotchas

On some browsers, security constraints will prevent the site from working if served through the file:// protocol. If this happens for you, install a web server and run it there.