MingHao_Hu

博客园 首页 新随笔 联系 订阅 管理

第一点:

在窗口中才可以使用window.opener.$(selector).val('value);
在父窗口中要

jquery 获取父窗口元素 parent window
$("#父窗口元素ID",window.parent.document); 对应javascript版本为window.parent.document.getElementByIdx_xx_x("父窗口元素ID");
取父窗口的元素方法:$(selector, window.parent.document);
那么你取父窗口的父窗口的元素就可以用:$(selector, window.parent.parent.document);
类似的,取其它窗口的方法大同小异
$(selector, window.top.document);
$(selector, window.opener.document);
$(selector, window.top.frames[0].document);

posted on 2012-08-23 12:35  MingHao_Hu  阅读(272)  评论(0编辑  收藏  举报