Javascript iFrame Limitations

Posted by Matrym on Stack Overflow See other posts from Stack Overflow or by Matrym
Published on 2010-05-12T00:55:41Z Indexed on 2010/05/12 1:24 UTC
Read the original article Hit count: 373

Filed under:
|

I know that, for security reasons, javascript can't read the contents of an iframe if it belongs to a different domain. This makes sense, given that the entire page could be an iframe with snooping scripts outside of the frame.

The question is - are there equal limitations in the other direction? Can javascript within an iframe (from a different domain) read and manipulate the dom in its parent window?

Thanks!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about iframe