I tried to figure it out looking at the source code but I couldn’t figure it out.
I would like to know how to make a dynamic favicon with a count like Gmail does.

Any idea on how to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can make an image with the
canvaselement, and then just replace the current favicon. Check out the following link for a good explanation on it.Reference
Code is from the above reference.
Markup
JS
Edit
Must have an image set as well.