Search code examples
javascriptiframeinternet-explorer-7internet-explorer-6

Reloading iframe from another iframe


Can I reload iframe (say __tree_iframe) from another child iframe (__content_iframe)?

Difficulty: IE6/7.

UPDATE

Obviosly I should use window.opener and find iframe using it iframes property. Apparently, IE doesn't support window.opener. Any ideas about another way?


Solution

  • If you have trouble accessing the iframe in the parent frame, best give it an ID. Then it should be possible to do a

    parent.getElementById("frameid").location.reload()
    

    if both parent, child and sibling are in the same domain.