经过一阵谈论和实验总结一下:
参考:http://www.cnblogs.com/rubylouvre/archive/2010/02/20/1669886.html

http://younglab.blog.51cto.com/416652/284288

http://hi.baidu.com/beluker/blog/item/0dc968ffc67cb149d6887df1.html

父窗口访问子窗口iframe里的元素:contentWindow,iframename
如:
js: document.getElementById("sss").contentWindow.document.getElementById("hll").onclick();
     myFrame.window.document.getElementById("hll").onclick();// myFrame.document.getElementById("hll").onclick();
=====================================================
html: <input   type=button   value="调用child.html中的函数say()" onclick="callChild()">
        <iframe name="myFrame" id="sss" src="child.html"></iframe>

及可以用iframe的name值之间取ifame的内容其==iframe里window对象,document.getElementById("sss").contentWindow==iframeName;
通过http://www.cnblogs.com/rubylouvre/archive/2010/02/20/1669886.html 获知window=window.window.............."window是无限循环引用自身"

posted on 2010-05-06 16:30  星光~  阅读(358)  评论(0)    收藏  举报