Check which JavaScript function starts after clicking a button in Internet Explorer

Is there a way or tools that can test which JavaScript function starts after clicking a button in Internet Explorer?

+4
source share
2 answers

Try the IE8 Script Debugger (under Developer Tools (F12)). Developer tools have several tabs, one of which is the "Script". There you need to use the "start debugging" button (it changes to "stop debugging", as shown in the screenshot), and then look for the button with the pause symbol ( || ) on the same toolbar. note that

activating developer tools
(source: piskvor.org )
break all button
(source: piskvor.org )

Allows you to set a "break for the next instruction"; do this and the debugger will open on the next JS line to be executed. If you go through all the event handlers for the button, you will see what gets called there.

If you have some control over the page, you can turn off mouseover and similar handlers, as they will also trigger the debugger.

+2
source

Not unless it is a javascript URL in href or hard-coded onclick (or similar). Unable to list event listeners.

-1
source

Source: https://habr.com/ru/post/1300038/


All Articles