求教JS 如何刷新父页的父页?
在正常情况下,如果子页关闭的同时刷新父页用 window.opener.location.reload(); 就可以了.现在我遇到另外一种情况:首先弹出A列表页,点击A页连接弹出B内容页,在点击B页回复按钮弹出C页并同时关闭B页了,在C页填写完回复内容按确定按钮,我可以关闭该C页而无法刷新A页,我应该用什么语句去刷新A页
程序代码:<html>
<head><title>a</title>
<body>
<input type="button" onclick="window.open('b.html','','width=200px;height=200px;');" value="调用B页面"/>
<input type="text" width="50px"/>
</body>
</html>
程序代码:<html>
<head><title>b</title>
<body>
<input type="button" onclick="alert(window.opener.location.href);window.open('c.html','','width=300px;height=300px;');" value="调用C页面"/>
</body>
</html>
程序代码:<html>
<head><title>c</title>
<body>
<br><br><br><br>
<input type="button" onclick="alert(window.opener.opener.location.href);window.close();" value="刷新A页面"/>
</body>
</html>