firefox 下取frameset对象与ie不兼容问题

document.getElementById("mainArea").contentWindow.document.getElementById("mainFrameset");

 

主页面中包含  <iframe scrolling="no" src="indexFrame.jsp" id="mainArea" name="mainArea" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0" ></iframe>

 

子页面中包含

 

<frameset rows="135,*,44" cols="*" frameborder="no"  framespacing="0" border="0" name="mainall">
<frame src="${ctx}/manageIndex.do?method=top" name="topFrame" scrolling="NO" noresize marginwidth="0" marginheight="0"/>
<!--frame src="${ctx}/manageIndex.do?method=index" name="mainFrame" scrolling="yes" noresize marginwidth="0" marginheight="0"/-->
<frameset id="mainFrameset" name="mainFrameset" cols="0,*" frameborder="no" border="1" framespacing="0" >
    <frame id="leftFrame" src="" name="leftFrame" scrolling="yes" noresize marginwidth="0" marginheight="0"/>
      <frame src="${ctx}/manageIndex.do?method=index" name="main" scrolling="YES" noresize marginwidth="0"/> 
  </frameset>
<frame src="${ctx}/bottom.jsp" name="bottomFrame" scrolling="NO" noresize marginwidth="0" marginheight="0"/>
</frameset>

 

 

在主页面中调用子页面中的frame对象可以如上操作

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值