Answer the question
In order to leave comments, you need to log in
How to track JS events in Chrome?
I went to some site, there is some event hanging on the button, for example onClick() , How can I quickly find in which file this event is located? For example, I pressed a button, and the file and line number that started processing this action appeared in the console.
For a long time I found some similar plugin for chrome, but now I can’t remember it. There is no access to the site.
Answer the question
In order to leave comments, you need to log in
in the console
will return an object in which you need to find an event and in it listener: function, right-click on the function -> Show function definition
Didn't find a convenient way? Ran into this problem when migrating from FF. There in the tree house all events are shown.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question