FireFox - Inspect Element

Hi,

For the FireFox's Inspect Element feature, is there an easy way to find where a javascript junction is located?

Let's say I got a function in my HTML body such as "onclick=return CallingMyFunction()" , how do I know where this function was defined? whether in the HTML codes or in a .js file?

I need to know an effective way to locate the codes.

Thank you.
trowaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Imran AliWeb DeveloperCommented:
You can search JavaScript function under Firefox debugger. See attached screenshot.

Select JavaScript file from left & perform search.

Firefox js debugger console
0
trowaAuthor Commented:
@Imran

I'm not using the FireBug for debugging, can you show me how using the Inspect Element instead? Thank you.
0
Imran AliWeb DeveloperCommented:
I am using default Firefox debugger not FireBug.
See attached screenshot on how to enable debugger.
firefox-developer-console.png
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

trowaAuthor Commented:
@Imran, I have clicked on that, What to do next after that? I can't see the same interface as what you shown in comment: ID: 42042319
0
Imran AliWeb DeveloperCommented:
You can open JavaScript debugger on Firefox by Clicking Menu > Developer > Debugger.

Or use keyboard keys Control + Shift + S
0
trowaAuthor Commented:
Your explanation is not clear enough.

I found the answer by using  "!" before the keyword.

SnapShot.png
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Imran AliWeb DeveloperCommented:
Trowa, I thought you were stuck with opening debugger console not on how to search.

I am still happy if you got it working though.

Thanks.
0
trowaAuthor Commented:
Solved it by myself.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Firefox

From novice to tech pro — start learning today.