IFRAME Flashcards

1
Q

IFRAME

A

represents a nested browsing context*

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

*browsing context,

A

the environment in which a browser displays a Document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

iframe main features

A

own session history* + own document*

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

*session history

A

visited pages; history

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

*document

A

The Document interface represents any web page loaded by the browser & is the entry point into the web page’s content (DOM Tree)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

*DOM Tree

A

a kind of tree whose nodes represent a HTML or XML document’s structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

parent browsing context

A

the context that embeds another bowser context

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

child browsing context

A

the context that is embedded by another browser context

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

topmost browsing context

A

browser context with no parent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

iframe DOM element

A

HTMLIFrameElement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

iframe restrictions (JS + CSS)

A

same-origin* policy:

cannot access parent / child context if not same-origin*

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

*origin

A

scheme (protocol) + hostname (domain) + port

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

.postMessage

A

a method of communication btw. cross-origin browsing contexts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

cross-origin access

A

no access, except to each other’s window object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

top level window

A

window.top

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

parent window

A

window.parent - returns self if no parent

17
Q

css inheritance

A

no inheritance

18
Q

list all child contexts

A

window.frames