父窗口:<script>
window.open("b.html");
</script>
子窗口:<script>
function refresh(){
window.opener.location.reload();
}
</script>
<input type=button onclick="refresh();" value='刷新父窗口'>
window.open("b.html");
</script>
子窗口:<script>
function refresh(){
window.opener.location.reload();
}
</script>
<input type=button onclick="refresh();" value='刷新父窗口'>
temp.html
<html>
<head>
<script>
window.showModalDialog("b.html");
</script>
</head>
<body>
<!--将主页作为iframe显示-->
<iframe src="a.html" frameborder=0 style="width:100%;height:100%;" />
</body>
</html>b.html
<html>
<body>
<input type="button" value="刷新父窗体" onclick="opener.location.reload();" />
</body>
</html>