HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM ownerDocument Property

Element Object Reference Element Object

Example

Return the ownerDocument of an element:

document.getElementById("demo").ownerDocument;

Try it yourself »

Definition and Usage

The ownerDocument property returns the owner document of a node, as a Document object.

In HTML, the HTML document itself is always the ownerDocument of an element.

Read more about the Document object in our Document object reference.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The ownerDocument property is supported in all major browsers.


Syntax

node.ownerDocument

Technical Details

Return Value: The owner document of the node, as a Document object
DOM Version Core Level 2 Node Object


Element Object Reference Element Object


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE