Skip to content

Instantly share code, notes, and snippets.

@jkburges
Created March 13, 2015 02:32
Show Gist options
  • Save jkburges/17f6028059dfb65c3cf9 to your computer and use it in GitHub Desktop.
Save jkburges/17f6028059dfb65c3cf9 to your computer and use it in GitHub Desktop.
Very simple example which updates the URL every second.
<!DOCTYPE html>
<html>
<script type="text/javascript">
var count = 0;
setInterval(function() {
count++;
window.history.pushState(null, '', count);
}, 2000);
</script>
<body>some content</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment