How to find event listeners on a DOM node when debugging or from the JavaScript code?

前端 未结 19 2460
臣服心动
臣服心动 2020-11-21 05:34

I have a page where some event listeners are attached to input boxes and select boxes. Is there a way to find out which event listeners are observing a particular DOM node a

相关标签:
19条回答
  • 2020-11-21 06:28

    The Firefox developer tools now does this. Events are shown by clicking the "ev" button on the right of each element's display, including jQuery and DOM events.

    Screenshot of Firefox developer tools' event listener button in the inspector tab

    0 讨论(0)
提交回复
热议问题