Accessing an iframe document (contentWindow) – JavaScript Tutorial



In this video we take a look at the contentWindow and contentDocument properties of an embedded iframe – it allows access to the underlying “window” and “document” objects of the HTML page.

Support me on Patreon:
https://www.patreon.com/dcode – with enough funding I plan to develop a website of some sort with a new developer experience!

For your reference, check this out:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentWindow

Follow me on Twitter @dcode!

If this video helped you out and you’d like to see more, make sure to leave a like and subscribe to dcode!

Original source

10 thoughts on “Accessing an iframe document (contentWindow) – JavaScript Tutorial

Leave a Reply