Avatar of trowa
 asked on

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.
FirefoxWeb BrowsersHTML

Avatar of undefined
Last Comment

8/22/2022 - Mon
Imran Ali

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

Select JavaScript file from left & perform search.

Firefox js debugger console


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

I am using default Firefox debugger not FireBug.
See attached screenshot on how to enable debugger.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck

@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 Ali

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

Or use keyboard keys Control + Shift + S

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Imran Ali

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.

Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.

Solved it by myself.