Firefox extension to find out which Javascript event is bound to an inspected element?

Tony_Henrich picture Tony_Henrich · Oct 13, 2009 · Viewed 15.7k times · Source

One can bind Javascript events to html elements without using inline declarations.

Is there a way when inspecting an html element to know which events are bound to the element? I want to know about the events defined by the developer and not the internal ones that come with the browser.

So if I hover over an element and a menu shows up, I want to know which method caused it.

I have been trying Event Spy with the Code inspector but it logs too many of the internal ones, unless I am not using it right.

Answer

NVI picture NVI · Oct 13, 2009

Visual event 2

Visual event
(source: tinygrab.com)

Visual Event is an open source Javascript bookmarklet which provides debugging information about events that have been attached to DOM elements.