HTML DOM HTML Object


HTML Object

The HTML object represents an HTML <html> element.

Access a HTML Object

You can access the <html> element by using getElementsByTagName():

Example

var x = document.getElementsByTagName("HTML")[0];
Try it Yourself »

Tip: You can also access the <html> element by using the document.documentElement property.

Standard Properties and Events

The HTML object also supports the standard properties and events.


Related Pages

HTML tutorial: HTML Introduction

HTML reference: HTML <html> tag


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.