View the properties of DOM objects
Use the Elements > Properties pane to browse and filter properties of DOM objects.
Open the Properties pane
To open the Properties pane, follow these steps:
- Open DevTools. By default, the Elements panel opens.
- In the DOM tree, select a node.
- Open the Properties tab. If you can't see the tab, click More , then select it from the drop-down menu.
Spot own properties
The Properties pane sorts and displays the object's own properties first and in bold font.
Find the origin of an inherited property
The Properties pane evaluates accessors on built-in elements and displays them on the object as inherited and in regular font.
To find the origin of an inherited property, expand an object, then its [[Prototype]]
, then the nested [[Prototype]]
, and so on.
In this example, you can trace where the inherited size
property came from by locating the original own (bold) property on the prototype chain together with the corresponding getter.
Additionally, prototype-specific properties are shown only on prototypes, not on objects. This makes it easier to diagnose objects.
Filter properties
To quickly find a property, start typing its name or value in the Filter textbox.
Show all properties
By default, the Properties pane doesn't show properties with null
and undefined
values.
To see all properties, check Show all.
Understand properties
The Elements > Properties pane shows a variety of properties.
Simple properties
Simple properties are pairs of <name>: <value>
.
Objects and arrays
Collapsible () properties are objects {}
or arrays []
.
For more information on inspecting JavaScript objects, see Inspect object properties.
Properties that correspond to DOM nodes
Properties that correspond to DOM nodes are links. Click on a link to select the relevant node in the DOM tree.
Own and inherited properties
Properties in bold font are object's own. They are defined directly on the object.
Properties in regular font are inherited from the prototype chain. To show them to you, DevTools evaluates relevant accessors on built-in HTML elements. DevTools sorts own properties first to make them easier to spot.
Enumerable and non-enumerable properties
Enumerable properties are bright in color. Non-enumerable properties are muted. You can iterate over the enumerable properties with the for … in
loop or Object.keys()
method.
Methods
Methods are marked with an f ()
.
For more information on functions, see Inspect functions via the Console.