window.close()改成:parent.window.close();试试

解决方案 »

  1.   

    try 1 try
    <meta http-equiv="refresh" content="0;url= www.163.com">
    <script>var tmp=window.open("about:blank","","fullscreen=1")tmp.moveTo(100,100)tmp.resizeTo(600,400)tmp.focus()tmp.location="http://www.163.com"</script>
      

  2.   

    function clo()
    {
    parent.window.opener=null;
    parent.window.close();
    }function pop(url){
    var sReturn=window.open(url,'cddec','height='+(screen.height-55)+',width=' +(screen.width-10)+',top=0,left=0,toolbar=no,menubar=no,scrollbars=auto,resizable=yes,location=no,status=no');
    if (sReturn == null)
         {
         flash.style.display="none"
         txt.style.display=""
         }
    else
    {clo();}
    }<body onLoad="pop('main.htm')">
      

  3.   

    onLoad="window.open('GSFW0014.jsp','','height=768,width=1024,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');window.opener=null;window.close();"
    改为:
    onLoad="OpenUrl(GSFW0014.jsp)"
    <script language="JavaScript">
      function OpenUrl(){
        window.open(url,'height=768,width=1024,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
        window.close();
      }
    </script>
      

  4.   

    onLoad="OpenUrl()"
    <script language="JavaScript">
     function OpenUrl(){
    window.open('GSFW0014.jsp','newwin','menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes,status=yes,resizable=yes');
        window.close();
    }
    </script>
      

  5.   

    index.html<过渡页>
    <html>
    <head>
    <title></title>
    <script language=javascript>
    function goToURL(url)
    {
    var hh = screen.height;
    var ww = screen.width;
    window.open(url,"newwin","left=0,top=0,width="+ww+",height="+hh+",fullscreen=1,toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,dependent=0");
    window.opener = null; //关闭窗口不提示
    window.close();
    }
    </script>
    </head><body onLoad="goToURL('index1.html')">
    </body>
    </html>