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

(source: piskvor.org )

(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.
source share