MDN wants to learn about developers like you:

This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

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.


var document = new Document()




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

Browser Compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 60 ? ? 47 ?
Feature Android Webview Chrome for Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile
Basic support 60 60 ? ? ? 47 ?

Document Tags and Contributors

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