Easy Tutorial
❮ Met Console Error Jsref Obj Error ❯

HTML DOM firstChild Property

Element Object

Example

Return the first child node of the document node:


Definition and Usage

The firstChild property returns the first child node of the selected node.

Note: If the selected node has no child nodes, this property returns NULL.


Browser Support

All major browsers support the firstChild property.


Syntax

Technical Details

Return Value: The first child node of the node.
DOM Version Core Level 1 Node Object
--- ---
❮ Met Console Error Jsref Obj Error ❯