页面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();
frame,window.open(),等相关的跳转总结
最新推荐文章于 2022-10-29 17:11:57 发布