On a webpage I have a "onclick"
event in a <div>
element. Right clicking it on Firefox and inspecting it brings up the dev console. At this point I see the function it is being called but I'm unable to lookup the code or the file that this function is pointing to, what am I missing?
On a webpage I have a "onclick"
event in a <div>
element. Right clicking it on Firefox and inspecting it brings up the dev console. At this point I see the function it is being called but I'm unable to lookup the code or the file that this function is pointing to, what am I missing?
3 Answers
Reset to default 2The body of the javascript function can be found in respective .js library. In developer's tool, click the tab "Debugger". It lists all .js files which might contain the function you are looking for.
Just found the answer while trying, it seems I were using # rather than @ which is used to lookup a function definition!
Have you tried firebug add on for Firefox? I think it is clearer to see it with firebug. I'm sorry if it's not what you are looking for, because i can't suggest it on ment