IFRAME Flashcards
IFRAME
represents a nested browsing context*
*browsing context,
the environment in which a browser displays a Document
iframe main features
own session history* + own document*
*session history
visited pages; history
*document
The Document interface represents any web page loaded by the browser & is the entry point into the web page’s content (DOM Tree)
*DOM Tree
a kind of tree whose nodes represent a HTML or XML document’s structure
parent browsing context
the context that embeds another bowser context
child browsing context
the context that is embedded by another browser context
topmost browsing context
browser context with no parent
iframe DOM element
HTMLIFrameElement
iframe restrictions (JS + CSS)
same-origin* policy:
cannot access parent / child context if not same-origin*
*origin
scheme (protocol) + hostname (domain) + port
.postMessage
a method of communication btw. cross-origin browsing contexts
cross-origin access
no access, except to each other’s window object
top level window
window.top
parent window
window.parent - returns self if no parent
css inheritance
no inheritance
list all child contexts
window.frames