HTML - Iframe Element (nested browsing context) (inline frame)

> (World Wide) Web - (W3|WWW) > HyperText markup Language (HTML)

1 - About

The iframe element.

nested browsing context

Advertising

3 - Example

<iframe sandbox="allow-same-origin allow-forms allow-scripts" src="http://maps.example.com/embedded.html"></iframe>

4 - Javascript

4.1 - Get the content of an iframe as a document

iFrameElement.contentWindow.document
// Note that iframe.contentDocument == iframe.contentWindow.document

4.2 - Get the parent document

parent.document

5 - Documentation / Reference