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

195
Visualizações
How to check the list of events bound to an element by Javascript

I'm looking for a way to list all events added to a certain element by Javascript. I know getEventListeners is available in dev tools, but it is not available in script.

I know with jQuery, I can check events with the below code. However, as this is a private method, it can only list events added by jQuery.

$._data(element, 'events')

I also checked this page, but this method needs to be executed before events are added. https://www.sqlpac.com/en/documents/javascript-listing-active-event-listeners.html

After all, is there no general way to check if an element has events after those events are added?

about 4 years ago · Santiago Trujillo
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