Reputation: 601
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
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