ZVON
>
References
>
DOM2 Reference
Intro
/
Search
/
ZVON
DOM2 reference
>
Core:
Document
>
documentElement
[Go to standard]
[Glossary]
[Help]
documentElement (attribute )
Owning interface and usage:
Document
.
documentElement
Member of these other interfaces:
none
Readonly:
yes
Type:
Element
Description:
Stores the
root
element of the document.
Note:
(
For HTML documents, this is the element with the
tagName
"HTML".
)
Example:
JavaScript:
var output = document.documentElement.nodeName;
Output:
desired
your browser
HTML