A頁面調到B頁面,B頁面關閉時A頁面刷新

A.htmljavascript

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

B.htmlhtml

<html>
<head>
</head>
<body onUnload="javascript:opener.location.href='a.html';"> 
<a onclick="javascript:window.close(this)">[CloseWindow]</a> 
</body> 
</html>
相關文章
相關標籤/搜索