HTML DOM length Property
Return the number of child nodes of the body element:
The result could be:
Try it yourself »
Definition and Usage
The length property returns the number of nodes in a collection.
A Node object's collection of child nodes is an example of a NodeList object
The length property is supported in all major browsers.
|Return Value:||A Number, representing the number of nodes in the nodelist|
|DOM Version||Core Level 1 Nodelist Object|
Thank You For Helping Us!
Your message has been sent to W3Schools.