I noticed Chromium has an interesting feature in the inspector/debugger: Event Listeners.
I haven't found the equivalent feature in Firefox Firebug. I saw a question from a couple years ago that said Firefox does not have an equivalent feature, but I'm wondering if there has been any update on this... Is there an addon yet for Firebug that lists listeners? Or, is there something about Firefox's implementation that makes this not practical?
Note: Event handlers are sometimes called event listeners — they are pretty much interchangeable for our purposes, although strictly speaking, they work together. The listener listens out for the event happening, and the handler is the code that is run in response to it happening.
Right-click on the search icon button and choose “inspect” to open the Chrome developer tools. Once the dev tools are open, switch to the “Event Listeners” tab and you will see all the event listeners bound to the element. You can expand any event listener by clicking the right-pointing arrowhead.
The click event: The onclick event occurs when the user clicks on an element. The dblclick event: ondblclick event occurs when the user double-clicks on an element.
Now, this feature is natively in the firefox inspector, you not need firebug anymore :) http://flailingmonkey.com/view-dom-events-in-firefox-developer-tools/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With