Find attached / bound events of an element using Chrome Development Tools / Firebug / IE Developer Toolbar

后端 未结 6 1244
暗喜
暗喜 2020-12-01 01:17

When inspecting a page\'s DOM, I would like to know the attached event(s) of an element quickly

For example, if a button has this HTML DOM

6条回答
  •  悲哀的现实
    2020-12-01 02:01

    With the Chrome inspector select the element in the "Elements" tab and then from the "Console" tab you can see the events attached to the element with getEventListeners($0);.

提交回复
热议问题