62,046
社区成员
发帖
与我相关
我的任务
分享
主窗体
<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 onclick="show();">Test.html</button><br/>
</body>
</html>
子窗体
<html>
<head>
<base target="_self" />
</head>
<body>
<h1>Welcome Test.html</h1>
<button onclick="window.close();">aaa</button>
</body>
</html>