Dir

From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
(Extended description)
m (Added 'dirxml' to the links)
Line 26: Line 26:
== See also ==
== See also ==
 +
* [[dirxml]]
* [[Command Line API]]
* [[Command Line API]]

Revision as of 10:59, 13 July 2012

Prints an interactive listing of all properties of the object.

This looks identical to the view that inside the DOM Panel and also shares the display options with it. I.e. if you have unchecked Show DOM functions for example, they also won't be shown in the output of this command.

Contents

Syntax

dir(object)

Parameters

object

Object to display the properties for. (required)

Examples

dir(document.body)

Lists all properties of the <body> element.

dir(userDefinedProperty)

Lists all properties of the userDefinedProperty variable.

See also

Personal tools