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.
Syntax
new Document();
Specifications
| Specification | Status | Comment |
|---|---|---|
| DOM The definition of 'Document' in that specification. |
Living Standard | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Document() constructor | Chrome Full support 60 | Edge Full support ≤18 | Firefox Full support Yes | IE No support No | Opera Full support 47 | Safari Full support Yes | WebView Android Full support 60 | Chrome Android Full support 60 | Firefox Android Full support Yes | Opera Android Full support 44 | Safari iOS Full support Yes | Samsung Internet Android Full support 8.0 |
Legend
- Full support
- Full support
- No support
- No support
