JavaScript Node Properties

You are Here:

JavaScript Node Properties

The following are the list of Node properties available in JavaScript programming.

baseURIReturns the absolute base URL of the specified node.
childNodesReturns all the children of the specified node.
childrenReturns all the HTMLCollection which contains all of the child elements of the node upon which it was called.
childElementCountReturns the number of child elements of the given element.
firstChildReturns the first children of the specified node.
firstElementChildReturns the object's first child Element, or null if there are no child elements.
isConnectedIndicates whether the node is connected (directly or indirectly) to the context object.
lastChildReturns the last child of the specified node.
lastElementChildReturns the object's last child Element, or null if there are no child elements.
nextSiblingReturns the node immediately following the specified node.
nodeNameReturns a DOMString containing the name of the current node.
nodeTypeReturns an integer that identifies what the node is. It distinguishes different kind of nodes from each other, such as comments, elements and text.
nodeValueGets or sets the value of the current node.
ownerDocumentReturns the top-level document object in which all the child nodes are created.
parentNodeReturns the parent node of the specified node.
parentElementReturns the parent element of the specified element.
previousSiblingReturns the previous node of the specified node, in the same tree level.
textContentGets or sets the text content of the specified node, and all its descendants.


Hi Developers, we almost covered 97% of JavaScript Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in JavaScript.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author