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 July 2015.

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 Standard
# ref-for-dom-document-document①

Browser compatibility

BCD tables only load in the browser