<SCRIPT LANGUAGE="JavaScript">
function ss()
{
  alert('您浏览本网页即将关闭!');
           window.opener="";
  window.close();
}
  
</SCRIPT>

解决方案 »

  1.   

    <script> 
    function close1(){     
            closes.Click();                  //ie4 

    function close2(){ 
            window.opener=null;       //ie5.5 
            window.close(); 

    </script> 
    <input type="button" value="关闭" onclick="close1()"> 
    <input type="button" value="关闭" onclick="close2()"> 
    <object id="closes" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"> 
    <param name="Command" value="Close"> 
    </object>
      

  2.   

    <SCRIPT LANGUAGE="JavaScript">
    function ss()
    {
      alert('您浏览本网页即将关闭!');
               window.top.opener=null;
               window.top.close();
    }
      
    </SCRIPT>
      

  3.   

    TO:wanghr100(灰豆宝宝.net) 
    调用的组建需要注册吗?在哪里找啊,他提示“仅在HTML帮助中才有此功能。”