Easy Tutorial
❮ Prop Element Nodetype Met Element Appendchild ❯

English: # XML DOM parentNode Property



Definition and Usage

The parentNode property returns the parent node of the specified element.

Syntax


Example

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

Example

The above code will output:


❮ Prop Element Nodetype Met Element Appendchild ❯