<html> <head> <meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 "> <title>新建网页</title> <script language="javascript" type="text/javascript">...function openNew() ...{ //window.showModalDialog('b.html','bulletin',"scrollbars=yes,menubar=no,resizable=yes,height=400,width=400"); window.open('b.html','bulletin',"scrollbars=yes,menubar=no,resizable=yes,height=600,width=500"); return false; }</script></head> <body> <input type=button onclick=openNew() value= "打开窗口 "> </body> </html> 子 <html> <head> <meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 "> <title> b </title> <script language="javascript" type="text/javascript">...function window.onbeforeunload() ...{ if(event.clientX> 360&&event.clientY <0||event.altKey) ...{ window.opener.location.href=window.opener.location.href window.opener.location..reload() } } </script></head> <body> 直接点关闭即可</body> </html>