Reloading iframe from another iframe

点点圈 提交于 2019-12-11 12:51:49

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/2477177/reloading-iframe-from-another-iframe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!