<html><head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<script language="javascript">
var a = window.open("http://www.google.com", "win");</script></head><body onunload="if(a!=null)a.close();"></body></html>

解决方案 »

  1.   

    <html><head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>新建网页 1</title>
    <script language="javascript">
    var a = window.open("http://www.google.com", "win");</script></head><body onunload="if(a!=null)a.close();"></body></html>
      

  2.   

    Navigator 4 中达到扩展的weindow.open()方法的属性有:
    dependent   Boolean   若opener窗口关闭,则子窗口关闭。
      

  3.   

    用“模式窗口”吧,这样不关闭子窗口就无法操作父窗口,保证父窗口不会在子窗口关闭前被关闭。用“模式窗口”只需要把window.open改为window.showModalDialog。