The contentDocument read-only property of the HTMLObjectElement interface Returns a Document representing the active document of the object element's nested browsing context, if any; otherwise null.


var document = HTMLObjectElement.contentDocument;


A Document.


Specification Status Comment
HTML Living Standard
The definition of 'contentDocument' in that specification.
Living Standard Initial definition.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
contentDocumentChrome Full support 1Edge Full support 12Firefox Full support 1IE Full support YesOpera Full support 40Safari Full support 10WebView Android Full support 37Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support 41Safari iOS Full support YesSamsung Internet Android Full support 1.0


Full support  
Full support