HTML DOM firstChildProperty
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
node.firstChild
Technical Details
| Return Value: | The first child node of the node. |
|---|---|
| DOM Version | Core Level 1 Node Object |
Other Extensions
Element Object