<html>
<head>
	<title>HTML5 History API Demo</title>
</head>
<body>
	<textarea id="log" style="width:100%;height:400px;margin:1em;"></textarea>
	<div id="url" style="border:1px black dotted;height:1em;margin:1em;"></div>
	<div id="buttons" style="margin:1em;"></div>
	<script type="text/javascript">
			var $url = document.getElementById('url'), $log = document.getElementById('log');

			window.onpopstate = function(event) {
				var message =
					"onpopstate: "+
					"location: " + location.href + ", " +
			