<OBJECT id=closewin type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><param name="Command" value="Close"></object>
<script language="javaScript"> 
closewin.Click(); 
</script> 

解决方案 »

  1.   

    <object ID='WebBrowser1' WIDTH=0 HEIGHT=0 CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></object>
    <input type=button value="print" onclick="document.all.WebBrowser1.ExecWB(6,1)">
    <input type=button value="PageSetting" onclick="document.all.WebBrowser1.ExecWB(8,1)">
    <input type=button value="Save" onclick="document.all.WebBrowser1.ExecWB(4,1)">
    <input type=button value="PrintPreview" onclick="document.all.WebBrowser1.ExecWB(7,1)">
    <input type=button value="Close" onclick="document.all.WebBrowser1.ExecWB(2,1)">
    <input type=button value="无提示关闭" onclick="document.all.WebBrowser1.ExecWB(45,2)">
    <input type=button value="无提示关闭" onclick="document.all.WebBrowser1.ExecWB(45,1)">
      

  2.   

    拿分来,活活.
    window.opener=null;
    window.close();
      

  3.   

    注: 网络自由人的那个代码在低版本IE里可以执行,但在新版的IE6或者打过SP3补丁的SERVER里已经被微软屏蔽了.
      

  4.   

    blacat27(春) 的方法在 IE5.0 下也无效!