Node.parentNode
JavaScript’s Node.parentNode read-only property returns the Node’s parent node or null if the Node does not have a parent node.
JavaScript’s Node.parentNode read-only property returns the Node’s parent node or null if the Node does not have a parent node.
JavaScript’s Node.parentElement read-only property returns the Node’s parent element or null if the Node does not have a parent element.
JavaScript’s Element.className property gets and sets the value of the Element’s class attribute.
JavaScript’s Element.childElementCount read-only property returns the number of the Element’s child elements.
JavaScript’s Element.lastElementChild read-only property returns the Element’s last child element or null if the Element has no child elements.
JavaScript’s Element.firstElementChild read-only property returns the Element’s first child element or null if the Element has no child elements.
JavaScript’s Node.lastChild read-only property returns the Node’s last child or null if the Node has no children.
JavaScript’s Node.firstChild read-only property returns the Node’s first child or null if the Node has no children.
The JavaScript Guide is your companion to learning JavaScript programming in a hands-on manner.