HTML DOM HTML Object
HTML object
The HTML object represents the HTML <html> element.
Access the HTML object
You can use getElementById() to access the <html> element:
var x = document.getElementsByTagName("HTML")[0];
Tip:You can also use document.documentElement Property Access the <html> Element.
Standard Properties and Events
HTML Object Supported StandardsPropertiesAndEvents.