Difference between revisions of "Inspect"

From FirebugWiki
Jump to: navigation, search
(Added parameter description and examples)
m (Added categories)
Line 44: Line 44:
== See also ==
== See also ==
* [[Command Line API]]
* [[Command Line API]]

Latest revision as of 16:04, 21 November 2013

Inspects an object in the most suitable panel, or the panel identified by the optional argument panelName.


inspect(object[, panelName])



The object to inspect. (required)


Name of the panel to inspect the object in. (optional)

The available panel names integrated into Firebug are html, stylesheet, script, dom, net and cookies. (Though the Net Panel and the Cookies Panel currently don't support inspecting).

If the panel name is not given, the most appropriate panel will be chosen.



Inspects the document property inside the DOM Panel.


Inspects the first element child of the <body> tag inside the HTML Panel.


Inspects the 10th rule of the first CSS stylesheet inside the CSS Panel.

inspect(myFunction, "script")

Inspects the function myFunction inside the Script Panel. If the second parameter wouldn't be specified, the function would be inspected inside the DOM Panel.

See also[edit]