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

70
Visualizações
Are there some JS events for HTML attributes?

I've noticed that document.createAttribute('myAttr') creates an instance of the Attr class, both in FF and Chrome. I also noticed that Attr inherits from the EventTarget class, it expose all the *EventListener function indeed.

But I've never heard of attribute related event so if they trigger events, what events do they trigger? and when?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

It inherits the EventTarget interface from its Node inheritance.
Various Nodes have events firing at them, Attr don't have any "built-in", but since they are Nodes, they also expose EventTarget's methods.

But as with every EventTarget, you can dispatchEvent() any Event you like manually.

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