Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

161
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda