HTML DOM childNodes Property
Get a collection of the body element's child nodes:
Try it yourself »
Definition and Usage
The childNodes property returns a collection of a node's child nodes, as a NodeList.
Tip: You can use the length property to determine the number of child nodes, then you can loop through all child nodes and extract the info you want.
The childNodes property is supported in all major browsers.
|Return Value:||A NodeList object, representing a collection of nodes|
|DOM Version||Core Level 1|
Thank You For Helping Us!
Your message has been sent to W3Schools.