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里只能有一种方法,就是本文开始的方法。
firefox中操作frame与IE中操作frame的异同
最新推荐文章于 2022-11-08 10:41:31 发布
本文详细介绍了在Firefox浏览器中操作Frame页面的方法,包括使用window.parent和document.getElementsByTagName等元素进行交互。
6701

被折叠的 条评论
为什么被折叠?



