Document()

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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
Document
60
17
20
No
47
8
60
60
20
44
8
8.0

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Document/Document