The HTMLDocument property of Window objects is an alias that browsers expose for the Document interface object.

You can find the members of HTMLDocument in the documentation of the Document interface.

Specifications

HTML Living Standard
The definition of 'HTMLDocument' in that specification.
Living Standard Turn the HTMLDocument interface into a Document extension.
Document Object Model (DOM) Level 2 HTML Specification
The definition of 'HTMLDocument' in that specification.
Obsolete Supersede DOM 1
Document Object Model (DOM) Level 1 Specification
The definition of 'HTMLDocument' in that specification.
Obsolete Initial definition

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic support
Deprecated
Chrome Full support YesEdge Full support YesFirefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.

Document Tags and Contributors

Last updated by: sideshowbarker,