FireFox - Inspect Element

trowa
trowa used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Imran AliWeb Developer

Commented:
You can search JavaScript function under Firefox debugger. See attached screenshot.

Select JavaScript file from left & perform search.

Firefox js debugger console

Author

Commented:
@Imran

I'm not using the FireBug for debugging, can you show me how using the Inspect Element instead? Thank you.
Imran AliWeb Developer

Commented:
I am using default Firefox debugger not FireBug.
See attached screenshot on how to enable debugger.
firefox-developer-console.png
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

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 Developer

Commented:
You can open JavaScript debugger on Firefox by Clicking Menu > Developer > Debugger.

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

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

SnapShot.png
Imran AliWeb Developer

Commented:
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.

Author

Commented:
Solved it by myself.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial