父窗口用iframe包含了3个窗口,然后窗口C中提交业务后,弹出了一个子窗口,子窗口要刷新整个父窗口,这个怎么搞?
用了window.opener.top.location刷新不了?
现在测试的js如下:
<script language=javascript>
if (window.opener.parent!=null)
{
window.opener.top.location = 'aaa.jsp?xxx';
alert("用了frame");
}else
{
window.opener.location='aaa.jsp?xxx';
alert("没有用frame");
}
window.close();
</script>
用了window.opener.top.location刷新不了?
现在测试的js如下:
<script language=javascript>
if (window.opener.parent!=null)
{
window.opener.top.location = 'aaa.jsp?xxx';
alert("用了frame");
}else
{
window.opener.location='aaa.jsp?xxx';
alert("没有用frame");
}
window.close();
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货