[edit] And I am being downvoted because... ?
[edit] And I am being downvoted because... ?
Prepending to the start of the page title does work though.
But if you have an audience skewed towards modern browsers and want to do something a little different this works well and definitely draws the eyes attention.
However, the problem with this library is it has to follow the limitations of favicons' dimensions. I think there should be an open standard for having alert badges like iPhone and Android phones put on top of home screen icons. The browser distributer could design theirs to match the UI so people could recognize them, and they could be allowed to extend just 2 or 3 pixels past the normal favicon boundaries to grab attention without being annoying or invisible.
You can tell when people want something when they're settling for several make-shift approaches at it within limitations.
Alerts should be there when I want to look for them - they shouldn't pull me out of what I'm doing. If they have to pop up on the screen for me to notice them it probably means I'm paying attention to something else.
(I don't have downvote powers)
While I appreciate a good piece of code and the need to reinvent a wheel
That reeked of sarcasm."Reeked of sarcasm". Jeez.