Easy Tutorial
❮ Prop Element Localname Dom Nodes Nodelist ❯

English: # XML DOM parentNode Property



Definition and Usage

The parentNode property returns the parent node of the element.

Syntax


Example

The following code snippet uses loadXMLDoc() to load "books.xml" into xmlDoc and returns the parent node of the first <title> element:

Example

The above code will output:


❮ Prop Element Localname Dom Nodes Nodelist ❯