IE 火狐 操作 iframe 的操作,
操作环境 IE7.0 ; 火狐 3.6.13 ; chrom 5.0.375
index 的 iframe 如下:
<iframe id="iframe1" name="topF" src="a.jsp"></iframe>
<iframe id="iframe2" name="leftF" src="b.jsp"></iframe>
<iframe id="iframe3" name="rightF" src="c.jsp"></iframe>
现在 c.jsp 操作 b.jsp 中 iframeTest() js 函数
c.jsp 操作形式如下:
<script language="javascript">
function test()
{
top.window.frames["leftF"].iframeTest();
}
</scrip>
此实例在 以上三个浏览器中测试通过!