V
V
veitsi2015-10-08 11:40:22
JavaScript
veitsi, 2015-10-08 11:40:22

How to define an event handler for the bootstrap button (a tag) of legacy code in the debugger?

Good afternoon, dear javascript gurus. Now I'm tinkering with a rather confusing site code, and I want to change the logic of work a little. It is physically unrealistic to completely subtract the project code and figure out what is happening there. I'm trying to understand in debug mode in the browser what specific script processes the button, which has only classes. tell me, please, are there quick options in Chrome DevTools or Firefox to figure out which of the scripts handles the button click

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivanq, 2015-10-08
@veitsi

In Firefox, if you right-click on a button and select "Inspect Element", there will be a gray "ev" button to the right of the element. If you click on it, a list of events, addresses, and even a handler code will appear.
30e5bce31c354b34a696d68fcf052671.png

V
veitsi, 2015-10-08
@veitsi

seems to have found a solution. it was necessary to look in firefox handlers not for the button itself, but for the submit form that contains the button

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question