31 comments

[ 4.1 ms ] story [ 73.6 ms ] thread
cool..hw does it work?
The code is all there to look at, just right click > view source for most desktop browsers.

But in brief, it's a fairly simple case of using JS to set "window.location.hash" to whatever value necessary. If you want to test this out, you can open your browser's JS console (on any website), and simply type something like this:

  window.location.hash="test"
and it'll update the URL displayed in your navigation bar.

Then it's just a case of using some JS code to generate the text to place in the navigation bar. It's quite a neat idea, but it's also pretty simple.

And my history is now full.
Is that the reason why the title of the page is named "I'm sorry"?
I am using chrome 40, and the history tells nothing except my first visit.

Edit: Oh no, the back button was grayed out. I thought it affected nothing to my history. My thought is wrong. Completely wrong.

Thanks for the warning. Better open that one in incognito mode to avoid this problem ;)
For those still about to try, use incognito mode.
(comment deleted)
And it appears that there is no way to select all entries matching a search for deletion in Chrome's history. Deleting all browser history from the last hour solves it though! Thanks for the warning...
Heads up for others. Open in incognito mode
Fun stuff though I would call them animations not games
Check out "pewpew"
Hah I missed that one - fantastic creativity!
The simplicity of this is amazing. On top of that even if somebody figured this out I didn't expect the assortment of animations offered up in the first show off. Would have been impressed with just the shark, but the table flip made it really cool.
Very clever, I just need a score on pewpew....
Love the innovative thinking. Do you think there could realistically be any useful use-cases for this though?

I really wouldn't be able to think of any off the top of my head...

It demonstrates that you can use the address bar for animation. I imagine there might be a scenario where you'd want to try this for a progress bar or some other kind of status indicator.
I imagine there might be a scenario where you'd want to try this for a progress bar or some other kind of status indicator.

That used to be what the status bar was for, until scripts started modifying it to hide link destinations (onclick= etc.) so that ability was disabled for "security reasons". Now the status bar is gone completely from most browsers by default, but onclick= can still be used to obfuscate link destinations.

Also, status bar scrollers were rather common on the "old web"; they won't be missed, and I hope address bar scrollers don't start being the next "cool thing". It's a fun demo-effect, just not something I'd like to see all the time.

Since there are no negative comments yet, let me be the first - I like it, but hell it really can hang up the browser...
froze my browser too.
It seems to work better in firefox than chrome for me.
True, almost every site does for me.
To author, please use "location.replace" instead of "location.hash". -avid pewpew player.
Done! Thanks for the tip.