我用a页面点击一个链接,弹出b页面,当我关闭b页面之后,我想刷新a页面,,请问如何实现?
谢谢大侠指教
b页面:
<body onbeforeunload="opener.location.reload()">
在b中添加一按钮
<input type="button" value="关闭窗口" onclick="closeit();">
<script language="JavaScript">
function closeit(){
window.opener.location.reload();
window.close();
}
</script>
<body onbeforeunload="opener.location.reload()">
<script language=javascript>
function fun_unload()
{
window.close();
opener.window.location.reload();
}
</script>
.......
<body ... onunload="fun_unload()">