Re:HTML5: Changing the browser-URL without refreshing page
by j79 on Wednesday July 21, 2010 @08:49PM
(#1537001)
Absolutely. I was thinking this could be "abused" in the same way that animated status bars were in the 90s.
Of course, I had to try it out...
javascript:var s=[119,101,108,99,111,109,101,45,116,111,45,104,97,99,107,101,114,45,110,101,119,115];var c=1;var mod=s.length+1;setInterval(function(){window.history.replaceState("","", setString())}, 200);function setString(){var n="";if(!(c % mod)){c=1}else{c++}for(i=0;i<s.length;i++){n+=String.fromCharCode(s[i]-(s[i]==45||i!=c-1?0:32))}return n+".aspx!!!"};
With Great Power, comes great potential for horrible, horrible abuse.