iframe accessing parent DOM?

Posted by Yuval A on Stack Overflow See other posts from Stack Overflow or by Yuval A
Published on 2010-04-12T08:39:55Z Indexed on 2010/04/12 8:43 UTC
Read the original article Hit count: 362

Filed under:
|
|

How is it possible for a script within an <iframe> to have any notion of the page containing it? Can a script in the frame access any context outside of it? What about cross-domain?

Up until now I believed an <iframe> is completely agnostic to the containing page, but I have seen an example which contradicts this belief.

What exactly can and can't be done from within an <iframe> with respect to the containing page?

© Stack Overflow or respective owner

Related posts about html

Related posts about JavaScript