S
S
Sergey Pribylskiy2014-12-11 15:17:17
JavaScript
Sergey Pribylskiy, 2014-12-11 15:17:17

How to find event handlers on an element?

There is a generated page, how to find out which handlers and in which files are hung on a certain element using firebug (firefox) or google Chrome?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
aen, 2014-12-11
@aen

In Chrome Dev Tools, select the element you need and go to the Event Listeners tab (sidebar in the Elements tab).

A
asd111, 2014-12-11
@asd111

There is a cool Visual Event plugin for chrome. There are similar ones for other browsers as well. You click, point the arrow at the desired element and it shows you all the event handlers on this element.

G
gaparchi, 2018-04-07
@gaparchi

In firefox, in the inspector, you select an element and the "ev" button appears on the right. Sometimes it helps a lot and even when Chrome Dev Tools -> Event Listeners is powerless.
5ac8179adf3b2107101641.png

S
Sergey Nalomenko, 2014-12-11
@nalomenko

FireBug has an Events tab that displays a list of all handlers associated with the selected item.

A
asdz, 2014-12-11
@asdz

When using event handlers installed via jquery, you won't see them via dev tools, you need to use third party tools like this .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question