O
O
Obivankinobi2016-05-26 17:21:35
JavaScript
Obivankinobi, 2016-05-26 17:21:35

How to find out which script handles the event?

Good afternoon.
Let's say several dozen files with js are connected to the site.
And I need to find any handler when clicking on the block.
How can I find out with the help of a firebug or a standard debugger which function is being executed, or at least in which file it is located??

Answer the question

In order to leave comments, you need to log in

5 answer(s)
I
ImSokel, 2016-05-26
@Obivankinobi

I use default Firefox for this.
He places the dice right next to the blocks. You can click and see which handlers are hanging on the element.
447c125ab20a4193a76ac4489f2336df

M
Maxim Postolov, 2016-05-26
@Bags85

В firebug вкладка "События"
srIE6Cw.png

I
imhuman, 2016-05-26
@imhuman

www.sprymedia.co.uk/article/visual+event+2 в помощь))

Петр, 2016-05-26
@petermzg

224e93e9e99d4ddeac52a06142a7cb4a.png

D
Deodatuss, 2016-05-26
@Deodatuss

я себе одну дикую штуку написал для таких случаев (когда навешено десятки событий через делегирование и фиг найдешь то что тебе нужно) https://github.com/Kontsedal/javascript-workflow-d...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question