HTML DOM documentElementProperty
Definition and Usage
The documentElement property returns the document element of a document as an element object.
For an HTML document, the returned object is an HTML element.
Note:If the HTML element is missing, the return value isnull。
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the documentElement property
Syntax
document.documentElement
Technical Details
| Return value: | The document element of the document, as an element object. |
|---|---|
| DOM Version | Core Level 1 Document Object |
Other Extensions
Document Object