码迷,mamicode.com
首页 > Windows程序 > 详细

JS iframe父子页面元素调用方法 window parent top 解释

时间:2014-11-01 09:46:28      阅读:240      评论:0      收藏:0      [点我收藏+]

标签:http   io   os   ar   on   html   ad   as   htm   

父窗口调用子窗口

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

JS iframe父子页面元素调用方法 window parent top 解释

标签:http   io   os   ar   on   html   ad   as   htm   

原文地址:http://www.cnblogs.com/jliuwork/p/4066417.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!