On Jul 14, 3:17 pm, spiderplant0 <[email protected]> wrote:
> Hi,
>
> I'm looking at a websites javascript and I have the name of a
> variable. I'd like to find where this variable resides within the DOM.
> Is there a way to do this?
>
> I.e. the DOM is enormous and so just browsing through it trying to
> stumble upon the variable is out of the question. I'd like to search
> for the identifier and be taken to this identifier within the DOM, or
> be told what the full object path of the identifier is.
> Thanks.

I don't know what a "variable" is in this context: DOM isn't a
programming language and doesn't have any variables.

If you're looking for an element with that as its id, switch to the
HTML panel and do a search for the string.
Alternatively, if you know the id exactly, go to the Console panel and
type "getElementById('<the id>')" in the command line.

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to