विश्व का सबसे बड़ा हिंदी वेब डेवलपर साइट
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

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():

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

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