父窗口调用子窗口
var hasMore = parent.document.getElementByIdx_x_x_x("hasMore").value;
子窗口调用父窗口
document.frames["ifrmBoxFrame"].me.preLoadBoxGrid();
window.frames["iframe_ID"].document.getElementByIdx_x_x_x("iframe_document_object").object_attribute = attribute_value
window
是对当前窗口自身的引用
如:window.returnValue = ret;
window.close();
top
返回顶层窗口,即浏览器窗口。
如:top.frames[tabID].location = url;
top.document.frames("ifrmBoxFrame").me.executeQueryCond();
parent
返回父窗口
如:parent.$("Insheet_FrameTable").src = "";
parent.frames["Insheet_FrameSheetList"].initInsheetList(false);
http://www.terwer.com/js-iframe-parent-child-window-parent-element-to-invoke-the-methods-of-the-page-top-to-explain.html