1、主页面代码:<iframesrc="桥接页面.html"frameborder="0"s艘早祓胂crolling="no"style="width:680px;height:300px;"></iframe>桥接页面代码:<iframesrc="目标页面.html"frameborder="0"scrolling="no"style="position:absolute;top:-250px;left:-360px;width:680px;height:500px;"></iframe>
2、js中的window对象可以一层一层地嵌套。给iframe定义一个name属性。找到主页面然后通过主页面(frame)找其他子页面(frame)//获取iframe的window对象vartopWin=window.top.document.getElementById("topNav").contentWindow;//通过获取到的window对象操作HTML元素,这和普通页面一样topWin.frames[1].document.getElementById("atag").target="_blank";