frame,window.open(),等相关的跳转总结

来源:互联网 发布:matlab凸包算法代码 编辑:程序博客网 时间:2024/06/05 16:24

页面A.window.open(B页面),如果在B页面调用A页面的test()方法,应该这么调用:B.window.opener.document.test();
页面C为frameSet 如下:
      <frameset id="main" >
          <frame src="A" name="a" id="a"/>
          <frame src="B" name="b" id="b"/>
      </frameset>
这个时候B调用A的方法如何调用?
B.parent.frames["a"].test();
如果在B页面window.open(D),如何在D页面调用A的test?
D.window.opener.parent.frames["a"].test();

原创粉丝点击