怎么用window.close();总是弹出提示,怎样可以不弹出关闭窗口的警告提示???

解决方案 »

  1.   

    <html><body><script language="javascript"> 
    var happyw=642 
    var happyh=400 
    var happywin=window.open("index1.htm","happywin","width="+happyw+",height="+happyh+",fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0") 
    if (history.length>0){history.back(1)}else{window.open("count.htm");
    window.close();

    </script></body></html>
      

  2.   

    怎么用window.close();总是弹出提示,怎样可以不弹出关闭窗口的警告提示???可以使用  window.opener=null;
              window.close();
    两段代码配合使用就可以了 注: ie5.5以上
      

  3.   

    把这一串放到IE的地址栏
    javascript:window.opener=null;window.close();window.open('http://expert.csdn.net/Expert/topic/2450/2450125.xml?temp=1.081485E-02',null,'fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');