最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to inspect javascript using Firefox developer tools - Stack Overflow

programmeradmin1浏览0评论

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?

Share Improve this question edited Apr 2, 2018 at 3:43 Grant Miller 29.1k16 gold badges156 silver badges170 bronze badges asked Sep 20, 2017 at 16:00 Jason 'Slingshot' MillerJason 'Slingshot' Miller 5342 gold badges6 silver badges23 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 2

The 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

发布评论

评论列表(0)

  1. 暂无评论