关于iframe

在iframe父窗口获取子窗口id

$('iframe').contents().find('id名字').html();或$("#iframe的ID").contents().find("#iframe中的控件ID")

window.frames["iframe_text"].document.getElementById("myH1").innerHTML = "http://hi.jb51.net";

 子窗口调用父窗口

parent.document.getElementById('myId').innerHTML="  "

子窗口调用父窗口函数

window.parent.func();

 

 

posted @ 2017-05-27 18:07  lxn*  阅读(110)  评论(0编辑  收藏  举报