HTML DOM documentElement property
Definition and Usage
documentElement attribute to an element object to return a document element of the document.
HTML document returned object to HTML elements.
Note: If the HTML element is missing, the return value is null.
Browser Support
All major browsers support documentElement property
grammar
document.documentElement
technical details
return value: | Document element of the document as an element object. |
---|---|
DOM version | Core Level 1 Document Object |