News for hackers. Stuff that matters.
Re:HTML5: Changing the browser-URL without refreshing page by kiwidrew on Wednesday July 21, 2010 @04:02PM (#1536364)
If you change the window.history.pushState() call to window.history.replaceState(), it doesn't add bazillions of entries to your history, which makes it slightly more practical.

javascript:var dashes = ""; var num = 20; while(--num) dashes += "-"; setInterval(function() { window.history.replaceState("", "", dashes.slice(0, num % 20) + "foo" + dashes.slice(num % 20)); num++;}, 500)

Re:HTML5: Changing the browser-URL without refreshing page by ben_alman on Thursday July 22, 2010 @10:58AM (#1538308)
Ok, here's a first pass... http://jsfiddle.net/cowboy/FB9Nd/show/