Blog2014 ≫ Changing the favicon dynamically

You see the little pirate picture of me up by the location bar there? That's the favicon of this page. I've been saving this bit of code1 for a while, had it open in a tab, I'm trying to think of a good use for it. Gmail uses it to show the number of emails in your inbox, and this site has a game2. Can I think of anything useful for any of my websites? I will try...

AHA possibly going to use it for work.

⬅️ :: ➡️

Paul Clarkeʼs weblog - I live in A small town, Kent. Wed + dad to two, I am a full stack web developr, + I do javascript / nodejs, some ruby, python, php ect ect. I like pubs, running, eating, home-automation and other diy stuff, history, family tree stuff, TV, squirrels, pirates, lego, and TIME TRAVEL.