FireFox - Inspect Element


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.
Who is Participating?
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
trowaAuthor Commented:

I'm not using the FireBug for debugging, can you show me how using the Inspect Element instead? Thank you.
Imran AliWeb DeveloperCommented:
I am using default Firefox debugger not FireBug.
See attached screenshot on how to enable debugger.
Ensure Business Longevity with As-A-Service

Using the as-a-service approach for your business model allows you to grow your revenue stream with new practice areas, without forcing you to part ways with existing clients just because they don’t fit the mold of your new service offerings.

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
Imran AliWeb DeveloperCommented:
You can open JavaScript debugger on Firefox by Clicking Menu > Developer > Debugger.

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

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


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.

trowaAuthor Commented:
Solved it by myself.
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

From novice to tech pro — start learning today.