js在iframe子页面操作父页面元素
window.parent.document.getElementByIdx_x("父页面元素id");
js在父页面获取iframe子页面元素
window.frames["iframe_ID"].document.getElementByIdx_x("子页面元素id");
jquery在iframe子页面获取父页面元素
$("#objid",parent.document)
jquery在父页面获取iframe子页面的元素
$("#objid",document.frames('iframename').document)
在iframe中调用父页面中定义的方法和变量
window.parent.window.parentMethod();
window.parent.window.parentValue;
在父页面操作iframe子页面的方法和变量
window.frames["iframe_ID"].window.childMethod();
window.frames["iframe_ID"].window.childValue;
https://www.jb51.net/article/116273.htm