firefox中操作frame与IE中操作frame的异同
2012-08-17 15:51
323 查看
firefox中操作frame
A是主页面,里面包括两个frame页面B和C
B:在B中操作C的javascript方法viewChangePassword()
window.parent.document.getElementsByTagName("frame")['mframe'].contentWindow.viewChangePassword();
firefox和IE访问frame是不一样的。
在IE中操作frame
1:window.parent.document.getElementsByTagName("frame")['mframe'].contentWindow.viewChangePassword();
2:window.parent.document.getElementById("mframe").viewChangePassword();
3:window.parent.document.getElementsByTagName("frame")[2].viewChangePassword();
在firefox里只能有一种方法,就是本文开始的方法。
A是主页面,里面包括两个frame页面B和C
B:在B中操作C的javascript方法viewChangePassword()
window.parent.document.getElementsByTagName("frame")['mframe'].contentWindow.viewChangePassword();
firefox和IE访问frame是不一样的。
在IE中操作frame
1:window.parent.document.getElementsByTagName("frame")['mframe'].contentWindow.viewChangePassword();
2:window.parent.document.getElementById("mframe").viewChangePassword();
3:window.parent.document.getElementsByTagName("frame")[2].viewChangePassword();
在firefox里只能有一种方法,就是本文开始的方法。
相关文章推荐
- ie和firefox下操作table对象的异同
- Ajax类,支持事件,容器,多种操作方式,兼容ie,firefox
- JS对select动态添加options操作[IE&FireFox兼容]
- 使用JavaScript在IE和Firefox下进行iframe的DOM操作
- 在javascript中操作兼容IE/Firefox浏览器的XMLDOM及扩展[最新]
- 关于IE、Firefox、Opera页面呈现异同
- onbeforeunload事件中调用Ajax实现用户注销操作(兼容IE、Firefox、Chrome)
- 支持ie与FireFox的剪切板操作代码
- [IE&FireFox兼容]JS对select操作
- select下拉列表操作,如何兼容于IE和firefox
- Javascript 元素拖曳操作 By shawl.qiu (兼容IE,Opera,Firefox)
- js操作textarea方法集合封装(兼容IE,firefox)
- 关于IE、Firefox、Opera页面呈现异同
- javascript 操作剪切板 ie firefox 兼容
- 兼容在IE和Firefox浏览器下操作XML(英)
- JS对select动态添加options操作[IE&FireFox兼容]
- FireFox和IE下的select option JS相关操作
- 转:ie和firefox的区别:range操作
- ie 和firefox中javascript中的异同问题