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.
TheDocument constructor creates a newDocument object that is a web page loaded in the browser and serving asan entry point into the page's content.
In this article
Syntax
js
new Document()Parameters
None.
Specifications
| Specification |
|---|
| DOM> # ref-for-dom-document-document①> |