HTML DOM HTML object

HTML-object

Het HTML-object vertegenwoordigt het HTML <html>-element.

Toegang tot HTML-object

U kunt getElementById() gebruiken om toegang te krijgen tot het <html>-element:

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

Try it yourself

Tip:You can also use document.documentElement attribute Access the <html> element.

Standard attributes and events

HTML object supports standardsattributesandEvents.

Related pages

HTML tutorial:HTML introduction

HTML reference manual:HTML <html> tag