cross domain iFrames communication problem
Posted
by Cyno
on Stack Overflow
See other posts from Stack Overflow
or by Cyno
Published on 2010-04-02T11:36:53Z
Indexed on
2010/04/02
11:43 UTC
Read the original article
Hit count: 452
- I have a page A containing 2 children iFrames called B and C.
- A and B are on different domains.
- On pressing a button in B I would like to change C's URL.
Based on the law III of Michael Mahemoff it should work, but in fact it doesn't (js security error).
Here is the JS code in B:
window.parent.frames['C'].location.href = "http://random.url";
© Stack Overflow or respective owner