How to get Events associated with DOM elements?

后端 未结 4 2235
遥遥无期
遥遥无期 2021-02-14 02:27

I have an HTML document.
It is possible to get the events associated with every Element in a particular FORM element in the document using javascrip

4条回答
  •  不知归路
    2021-02-14 03:17

    This probably isn't what you're looking for but may help you atleast see which part of the DOM you need to be looking at - you can get a plugin for firebug which shows any jQuery events bound to DOM elements called firequery, and I think firebug on its own can show attached events in normal JS.

    Considering that firebug is written in JS, there obviously must be a way to do it. Unfortunately I don't have time to go through the source myself (I'd like to :D ) but you can find the repo here: http://code.google.com/p/fbug/source/browse/branches/firebug1.8/content/firebug/

    Sorry I can't be of more help and good luck

提交回复
热议问题