A页面调到B页面,B页面关闭时A页面刷新

A.html

<html>
<head>
<script type="text/javascript">
alert("refresh");
</script>
</head>
<body>
<a onclick="javascript:window.open('b.html');">OpenNewWindow</a> 
<body>
</html>

B.html

<html>
<head>
</head>
<body onUnload="javascript:opener.location.href='a.html';"> 
<a onclick="javascript:window.close(this)">[CloseWindow]</a> 
</body> 
</html>

  

posted @ 2016-12-23 16:41  流星焱雨  阅读(828)  评论(0编辑  收藏  举报