主窗体
<html>
<head></head>
<script>
alert('aaa');
function show()
{
window.showModalDialog('test.html',window,'dialogHeight:400px;dialogWidth:54f0px;center:yes;help:no;resizable:no;status:no;scroll:no;');
window.location.reload();
}
</script>
<body>
<button οnclick="show();">Test.html</button><br/>
</body>
</html>
子窗体
<html>
<head>
<base target="_self" />
</head>
<body>
<h1>Welcome Test.html</h1>
<button οnclick="window.close();">aaa</button>
</body>
</html>