nitesh sharma
nitesh sharma

Reputation: 601

How to know which handler get fired in Javascript

Is there anyway I can figure out perhaps using firebug, when I click on a element the name(s)/body(s) of a function which get called.

for an example I want to know what are the Javascript functions that got triggered when I press tweet button.

Please note that I am not talking about eventLog, breakpoints, or anything that requires to modify the source code.

I found out that visual event is an amazing tool which can help to visualize all the events attached with different elements.

Upvotes: 0

Views: 77

Answers (1)

Linus Thiel
Linus Thiel

Reputation: 39223

I don't know about Firebug, but in Webkit Inspector, under the Scripts tab, under Breakpoints, then Event Listener Breakpoints, you can select different types of events in a hierarchical structure (Keyboard, Mouse, etc, and under those, each individual event).

When the event is triggered, the debugger will break.

Upvotes: 1

Related Questions