0

When I receive a new email, chrome put a blue point after gmail favicon. How Can I do this for my website when a new message arrives?

like this

Note: I test and understand that gmail doesn't do this using changing favicon. It does something else.

proof

Mohamad Shiralizadeh
  • 8,329
  • 6
  • 58
  • 93
  • 1
    Possible duplicate of [Changing website favicon dynamically](http://stackoverflow.com/questions/260857/changing-website-favicon-dynamically) – Theraot May 21 '17 at 06:05
  • @Theraot gmail doesn't do this by changing favicon. I test it.. – Mohamad Shiralizadeh May 21 '17 at 06:07
  • @Theraot favicon is static during this event. – Mohamad Shiralizadeh May 21 '17 at 06:08
  • 1
    I had a look at Chromium source. They call it an [indicator](https://cs.chromium.org/chromium/src/chrome/browser/ui/views/tabs/tab.cc?q=tab.cc+package:%5Echromium$&dr=C&l=1257) and it is not part of the [favicon](https://cs.chromium.org/chromium/src/chrome/browser/ui/views/tabs/tab.cc?q=tab.cc+package:%5Echromium$&dr=C&l=1239). I'm unaware of what triggers it. Yet, it appears to only be used for pinned tabs. I'm retracting my close vote. Edit: it is changint the title of the tab what triggers it. – Theraot May 21 '17 at 06:26
  • 1
    Possible duplicate of [How do you put the blue dot on pinned Chrome tabs?](http://stackoverflow.com/questions/4825680/how-do-you-put-the-blue-dot-on-pinned-chrome-tabs) - can't vote to close again, ha! – Theraot May 21 '17 at 06:29
  • @Theraot WOWWWW!! tnx.. – Mohamad Shiralizadeh May 21 '17 at 06:30

2 Answers2

3

Apparently tabs flash automatically when you change the title. source

Mohamad Shiralizadeh
  • 8,329
  • 6
  • 58
  • 93
1

You should evaluate favicon.js. This JS framework lets you change the favicon and also supports numbered notifications. There is a live demo right in the home page, so you will know immediately if it fits your needs.

philippe_b
  • 38,730
  • 7
  • 57
  • 59