[b]$("#父窗口元素ID",window.parent.document);
对应javascript版本为window.parent.document.getElementByIdx_x("父窗口元素ID");
取父窗口的元素方法:$(selector, window.parent.document);
那么你取父窗口的父窗口的元素就可以用:$(selector, window.parent.parent.document);
类似的,取其它窗口的方法大同小异
[color=blue]$(selector, window.top.document);
$(selector, window.opener.document);
$(selector, window.top.frames[0].document);[/color]
[/b]
[color=red]参考
http://my.oschina.net/sunfei/blog/32771[/color]
对应javascript版本为window.parent.document.getElementByIdx_x("父窗口元素ID");
取父窗口的元素方法:$(selector, window.parent.document);
那么你取父窗口的父窗口的元素就可以用:$(selector, window.parent.parent.document);
类似的,取其它窗口的方法大同小异
[color=blue]$(selector, window.top.document);
$(selector, window.opener.document);
$(selector, window.top.frames[0].document);[/color]
[/b]
[color=red]参考
http://my.oschina.net/sunfei/blog/32771[/color]