请教frameset嵌套iframe的问题。
1、文件a.htm(此文件也是在普通帧中的)
<frameset id="frameset" rows="30,*" frameborder="NO" border="0" framespacing="0">
<frame src="1.htm" name="testtop" id="testtop" scrolling="NO" noresize >
<frame src="2.htm" name="testbottom" id="testbottom">
</frameset>
2.htm
<iframe id="mulu" name="mulu" style="HEIGHT:100%;WIDTH:100%" scrolling="yes" frameborder=1 src="3.htm"></iframe>
注:3.htm是跨域的静态页面,链接不太规范。有时链接就会跳出iframe。
在 1.htm 中有一个按钮返回首页。
代码:
window.parent.frames['testbottom'].location.href='a.htm'; 这种写法会跳出ifarme,我想将返回还是放到iframe中,该如何写啊?谢谢。