Document: Document() constructor
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2018.
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
js
new Document()
Parameters
None.
Specifications
| Specification |
|---|
| DOM # ref-for-dom-document-document① |
Browser compatibility
| desktop | mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Document() constructor
|
|
|
|
|
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support