Easy Tutorial
❮ Prop Img Complete Dom Obj Frameset ❯

HTML DOM ownerDocument Property

Element Object

Example

Return the root element of an element:


Definition and Usage

The ownerDocument property returns the root element of an element.

In HTML, the HTML document itself is the root element of the element.

For more document objects, refer to our Document Object Reference.


Browser Support

All major browsers support the ownerDocument property.


Syntax

Technical Details

Return Value: The document of the node, such as the document object.
DOM Version Core Level 2 Node Object
--- ---

Element Object

❮ Prop Img Complete Dom Obj Frameset ❯