The Document constructor creates a new Document object which is a web page loaded in the browser and serving as an entry point into the page's content.

Syntax

var document = new Document()

Parameters

None.

Specifications

Specification Status Comment
DOM
The definition of 'Document' in that specification.
Living Standard Initial definition.

Browser Compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support60 ? ? ?47 ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support6060 ? ?47 ? ?

Document Tags and Contributors

Contributors to this page: fscholz, suterj, jpmedley
Last updated by: fscholz,