This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2019.
The contentWindow read-only property of the HTMLObjectElement interface returns a WindowProxy representing the window proxy of the object element's nested browsing context, if any; otherwise null.
A Window, or null if there are none.
| Specification |
|---|
| HTML> # dom-object-contentwindow> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
contentWindow |
53 | 17 | 22 | 40 | 13 | 53 | 22 | 41 | 13 | 6.0 | 53 | 13 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/contentWindow