Easy Tutorial
❮ Met Element Issamenode Dom Prop Node Ownerdocument ❯

XML DOM nodeValue Property



Definition and Usage

The nodeValue property sets or returns the value of a node, depending on its type.

Syntax


In all examples, we use the XML file books.xml and the JavaScript function loadXMLDoc().

Example

The following code snippet displays the node name and node value of the root node:

Example

Output:


❮ Met Element Issamenode Dom Prop Node Ownerdocument ❯