<input type="button" value="open" name="open" onclick="window.open('about:blank');window.opener=null;window.close()"></body>

解决方案 »

  1.   

    <script language=javascript>
    function aa()
    {
    window.close()
    }
    </script>
    <a href="d.htm"  onclick=aa() target=_blank>kk</a>
      

  2.   

    window.open("新的窗口");
    window.close();
    即可~~
      

  3.   

    有个activex可以
    <object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
    </object>
    <input type="button" name="Button" value="关闭窗口" onClick="document.all.WebBrowser.ExecWB(45,1)">试着改变参数会得到其他一些功能:WebBrowser.ExecWB(1,1) 打开
    WebBrowser.ExecWB(2,1) 关闭现在所有的IE窗口,并打开一个新窗口
    WebBrowser.ExecWB(4,1) 保存网页
    WebBrowser.ExecWB(6,1) 打印
    WebBrowser.ExecWB(7,1) 打印预览
    WebBrowser.ExecWB(8,1) 打印页面设置
    WebBrowser.ExecWB(10,1) 查看页面属性
    WebBrowser.ExecWB(15,1) 好像是撤销,有待确认
    WebBrowser.ExecWB(17,1) 全选
    WebBrowser.ExecWB(22,1) 刷新
    WebBrowser.ExecWB(45,1) 关闭窗体无提示这些只对IE5.5以上版本有效,我是在IE6下测试的,通过的。 
      

  4.   

    <object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
    </object><body onload="document.all.WebBrowser.ExecWB(45,1);windows.open(....);">
    </body>
      

  5.   

    to matq2008(能者行) 
    呵呵。收藏了。