JavaScript Node Properties
You are Here:
JavaScript Node Properties
The following are the list of Node properties available in JavaScript programming.
Functions | Explanation |
---|---|
baseURI | Returns the absolute base URL of the specified node. |
childNodes | Returns all the children of the specified node. |
children | Returns all the HTMLCollection which contains all of the child elements of the node upon which it was called. |
childElementCount | Returns the number of child elements of the given element. |
firstChild | Returns the first children of the specified node. |
firstElementChild | Returns the object's first child Element, or null if there are no child elements. |
isConnected | Indicates whether the node is connected (directly or indirectly) to the context object. |
lastChild | Returns the last child of the specified node. |
lastElementChild | Returns the object's last child Element, or null if there are no child elements. |
nextSibling | Returns the node immediately following the specified node. |
nodeName | Returns a DOMString containing the name of the current node. |
nodeType | Returns an integer that identifies what the node is. It distinguishes different kind of nodes from each other, such as comments, elements and text. |
nodeValue | Gets or sets the value of the current node. |
ownerDocument | Returns the top-level document object in which all the child nodes are created. |
parentNode | Returns the parent node of the specified node. |
parentElement | Returns the parent element of the specified element. |
previousSibling | Returns the previous node of the specified node, in the same tree level. |
textContent | Gets or sets the text content of the specified node, and all its descendants. |
Reminder
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.