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


new Document();


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

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Document() constructorChrome Full support 60Edge Full support YesFirefox Full support YesIE No support NoOpera Full support 47Safari Full support YesWebView Android Full support 60Chrome Android Full support 60Firefox Android Full support YesOpera Android Full support 44Safari iOS Full support YesSamsung Internet Android Full support 8.0


Full support  
Full support
No support  
No support