Skip to content
Advertisements

Month: February 2019

DOM firstChild

DOM firstChild

Returns the first child of the connected node. Returns null if the node does not have a child.

DOM childNodes

DOM childNodes

The element.childNodes property returns an array of subnodes bound to the element node.

DOM parentNode()

DOM parentNode()

The HTML DOM parentNode() method returns a parent node of the specified node as the Node object.

DOM hasChildNodes

DOM hasChildNodes

The hasChildNodes () method returns true if the specified node has any child nodes.