<input type=button value=关闭 onclick="window.opener='meizz';window.close()">
<!-- IE5.5+ 不会有弹出提示 -->

解决方案 »

  1.   

    <head>
    <OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
    <param name="Command" value="Close">
    </object>
    </head>
    <body>
    <input type="button" value="点击我关闭窗口" onclick="closes.Click();">
    </body>
      

  2.   

    window.opener =null;
    window.close();
      

  3.   

    //IE6+SP1以下有效
    <OBJECT id=closeit classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
    <PARAM NAME="Command" VALUE="Close"></OBJECT>
    <a href="javascript:closeit.Click()">点这里关闭窗口</a>//IE5.5以上有效
    <input type=button value=关闭 onclick="window.opener='null';window.close()">//IE5.5以上有效
    <OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT><input type=button value=关闭窗口 onclick=document.all.WebBrowser.ExecWB(45,1)>