Skip to content

Instantly share code, notes, and snippets.

@abhiomkar
Created July 21, 2010 19:22
Show Gist options
  • Select an option

  • Save abhiomkar/484985 to your computer and use it in GitHub Desktop.

Select an option

Save abhiomkar/484985 to your computer and use it in GitHub Desktop.
Copy and paste this code to url, see what it does!
var dashes = ""; var num = 20; while(--num) dashes += "-"; setInterval(function() { window.history.pushState("", "", dashes.slice(0, num % 20) + "foo" + dashes.slice(num % 20)); num++;}, 500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment