|
DocumentDocumentElementProperty
The document.documentElement property
ValuesThe document.documentElement property returns an Element which is the root of the document where it belongs. Typically, in a HTML document, this will be the HTML element, in a SVG document this will be the svg element, and so on. This property is read-only. Remarks1 Internet Explorer does not support this property in quirks mode. You'll have to resort to document.body instead. 2 Although documentElement is the document root, it can have siblings, which can be text nodes, comments, xml processing instructions or doctypes. UsageBrowser compatibility
Further reading |
Sign in to add a comment
