How can I trace an event using Firebug?

后端 未结 5 886
庸人自扰
庸人自扰 2021-01-13 05:43

For instance when I inspect the element, I want to know all events bound to an element..Where can I find these?

相关标签:
5条回答
  • 2021-01-13 05:52

    There's Firebug extension Eventbug.

    Eventbug is a Firebug extension that lists all of the event handlers on the page grouped by event type...


    In Chrome's Developer Tools there is Event Listeners tab in the Elements panel, which lists all listeners attached to an element.

    enter image description here

    0 讨论(0)
  • 2021-01-13 06:03

    I asked a related question a while back, and got this answer:

    You can see the jquery expression in firebug DOM inspector using FireQuery in firefox https://addons.mozilla.org/en-us/firefox/addon/firequery/

    It worked for me!

    0 讨论(0)
  • 2021-01-13 06:05

    You can use the Visual Event bookmarklet at: http://www.sprymedia.co.uk/article/Visual+Event

    It overlays some icons representing each event that is attached to DOM items and you can quickly inspect the event's code by clicking on the icon.

    0 讨论(0)
  • 2021-01-13 06:07

    Download fireQuery. Its a firebug addon that shows you any event that is bound to an element as well as any .data that maybe assigned to that element

    0 讨论(0)
  • 2021-01-13 06:08

    try http://getfirebug.com/wiki/index.php/Firebug_Extensions#Eventbug

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