Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

75
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda