Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
How webpages put the number of notification inside the page tab icon?

how to put the number of notification inside the web page tab icon? for example how whatsapp put the number of new messages inside the whatsapp logo ?

whatsapp web1

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The icon in the tab is called a favicon, and it is set using a meta tag. The website changes the favicon to a new one every time the amount of messages changes. This is the code to change the favicon (which can usually be any image file):

document.querySelector("link[rel*='icon']").href = "[new favicon image url]";

You will need to have different images for each number of notifications. You can do it on the client side by generating images and using createObjectURL (read more), or you can have images and load them in from the server-side.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!