没有专门的关闭事件用window.showModelessDialog()

解决方案 »

  1.   

    试试这个
    test.htm
    -------------------------------------------
    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 1</title>
    <script>
    var win;
    function openOper()
    {
      win=window.open('test1.htm', '_blank','location=no,menubar=yes,scrollbars=yes,resizable=yes,toolbar=yes,top=0,left=0');
    }
    function closeOpen()
    {
      win.close();
    }
    </script>
    </head><body onunload="closeOpen();"><p><input type="button" value="打开" name="B3" onclick="openOper();"></p></body></html>
    --------------------------------------------