Easy Tutorial
❮ Met Table Deletethead Prop Text Disabled ❯

HTML DOM childNodes Property

Element Object

Example

Retrieve the collection of child nodes of the body element:


Definition and Usage

The childNodes property returns a NodeList containing the child nodes of the selected node.

Note: If the selected node has no child nodes, this property returns an empty NodeList. For iterating over the list of child nodes, using the nextSibling property is more efficient than using the childNodes list of the parent object.


Browser Support

All major browsers support the childNodes property.


Syntax

Technical Details

Return Value: NodeList object, representing a collection of nodes.
DOM Version Core Level 1
--- ---

Element Object

❮ Met Table Deletethead Prop Text Disabled ❯