awaysrain(绝对零度) 那么那个窗口是怎么关闭的呢?用window.close(),会谈出对话框,让你确定是否要关闭。
就是手动的关闭,也不行,因为弹出的是对话框,不能在对话框没有关闭的情况下,去操作父窗体

解决方案 »

  1.   

    window.opener=null就不会弹出来了
      

  2.   

    昨天我记得把代码帖上来了啊,怎么没有?
    他的代码
    ====================
    <script language="javascript">
    <!--
    function startLogin()
    {
    var current=window.top;
    if (current.opener!=null){
    current.opener.location="Login.aspx";
    current.close();
    }
    else{
    /*while (current.opener!=null){
    var parentWindow=current.opener;
    current.close();
    current=parentWindow.top;
    }*/
    var nDialogWidth=422;
    var nDialogHeight=280;
    var nLeft=(window.screen.availWidth-nDialogWidth)/2;
    var nTop=(window.screen.availHeight-nDialogHeight)/2;
    window.moveTo(-9999,-9999);
    var sFeatures="dialogLeft:"+nLeft+"px;dialogTop:"+nTop+"px;dialogHeight:"+nDialogHeight+"px;dialogWidth:"+nDialogWidth+"px;help:no;status:no";
    var bLogged=window.showModalDialog("AnonymousAccessibleForms/Login.htm",window,sFeatures);

    if (bLogged){


    window.moveTo(0,0);
    window.top.location="Default.aspx";
    }
    else{
    window.moveTo(0,0);
    window.top.location="http://www.hexiesoft.com"
    //HHCTRL.Click();
    //window.close();
    }
    }
    }
    startLogin();
    //-->
    </script>