一层一层往上找啊。从你的描述没有办法判断。要具体代码
>:可以啊opener.location.reload()
>:or opener.document.location.reload()好像在NetScape里还非得加个document才行,不然有时会出错。另外,如果你的resjjs.html页面里有form的话,可以在reply.jsp里submit这个form,也可以达到刷新的效果
>:可以啊opener.location.reload()
>:or opener.document.location.reload()好像在NetScape里还非得加个document才行,不然有时会出错。另外,如果你的resjjs.html页面里有form的话,可以在reply.jsp里submit这个form,也可以达到刷新的效果
我知道一层一层找,我知道获取主窗口是window.opener
但我不知道获取窗口的帧以及帧里套的帧的方法qiushuiwuhen(秋水无恨)
靠!不是刷新主窗口,是刷新主窗口的帧的帧
right.html{
resjjs.html{
open reply.jsp
}
}
}如图所示:相对于reply.jsp
resjjs.html opener
right.html opener.parent
frame.html opener.top
right.html{
resjjs.html{
open reply.jsp
}
}
}如图所示:相对于reply.jsp
resjjs.html opener
right.html opener.parent
frame.html opener.top看以下的例子就知道了
<iframe name=a src="about:<iframe name=b src='about:<script>window.open("about:<script>alert(window.opener.name)<\/script>")</script>'">
opener代表的就是一个window不管它存在于iframe还是独立的window.
与文档的ui结构无关.它只代表这么一种主谓关系.
opener代表的就是一个window不管它存在于iframe还是独立的window.
与文档的ui结构无关.它只代表这么一种主谓关系.