Is there any way or tools I can check which JavaScript function is run after clicking a button in Internet Explorer?
views:
77answers:
2No, unless it is a JavaScript URL in a href, or a hard-coded onclick (or similar). There is no way to enumerate event listeners.
Try the IE8 Script Debugger (under Developer tools (F12)). The Developer Tools have several tabs, one of them is "Script". There, you need to use "start debugging" button (it changes to "stop debugging", as seen in screenshot), and then look for a button with the "pause" (||) symbol on the same toolbar. Note that the

It allows you to set "break on next instruction"; do that and the debugger will open on the next line of JS to be executed. If you step through all the event handlers for the button, you'll see what is called there.
If you have some control over the page, you may want to disable the mouseover and similar handlers, as those will also trigger the debugger.