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

解决方案 »

  1.   

    <script>
    opener=null;
    window.open();
    close();
    </script>
      

  2.   

    dunkee(dunkee)的方法在某些ie版本会出提示框
      

  3.   

    <script language=javascript>
    function close()
    {
    window.opener=null;
    window.close();
    }
    </script>
      

  4.   

    你把你的鼠标放到csdn这个页面的关闭窗口上就可以看到代码的!
      

  5.   

    a.html:
    ----------------------------------------------------------------
    <iframe src="b.html"></iframe>b.html
    ----------------------------------------------------------------
    <script>
    (top.opener=top).close();
    </script>
      

  6.   

    <OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
    <param name="Command" value="Close">
    </object>
    <input type="button" value="&micro;&atilde;&raquo;÷&Icirc;&Ograve;&sup1;&Oslash;±&Otilde;&acute;°&iquest;&Uacute;" onclick="closes.Click();">
      

  7.   

    <input type=button value=close onclick="window.opener=null;window.close()">
    <!-- IE5.5以上不会有弹出提示 -->上面说的关闭网页控件在新版的IE6及打过SP3的win2000里已经被禁止
      

  8.   

    <input type=button name=test value=test onclick="window.close();return false">