Easy Tutorial
❮ Prop Document Nodevalue Prop Document Async ❯

XML DOM ownerDocument Property



Definition and Usage

The ownerDocument property returns the root element of the node (document object).

Syntax


Example

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

Example

The above code will output:


❮ Prop Document Nodevalue Prop Document Async ❯