没有。这个提示框出现与否与浏览器设置有关。不过你可以尽量让window.close()关闭window.open()打开的窗口,这种情况通常不会出现提示窗口。

解决方案 »

  1.   

    <input type="button" value="关闭" onclick="opener=null;self.close();">
      

  2.   

    谢谢,我刚才测试了一下,在window.close()前插入语句opner=null;好像就直接关闭了。
      

  3.   

    loadingpage...
    <script language = "javascript">function WO_LS(loadpos, WWidth, WHeight) //Lock Size

    var WLeft = Math.ceil((window.screen.width - WWidth) / 2 ); 
    var WTop = Math.ceil((window.screen.height - WHeight) / 2 ); 
    var features =
    'width='  + WWidth  + 'px,' +
    'height=' + WHeight  + 'px,' +
    'left='   + WLeft  + 'px,' +
    'top='    + WTop  + 'px,' +
    'fullscreen=0, toolbar=0, location=0, directories=0, status=1, menubar=0, scrollbars=0, resizable=0';
    WinOP = window.open(loadpos, "", features);
    if(!WinOP){
    WinOP=window.open(loadpos, "", features);
    }
    if(!WinOP){
    alert("无法开启新窗口,如果您使用了窗口拦截工具,请先将其暂停使用!");
    return false;
    }else{
    WinOP.focus();
    window.opener="meizz"; 
    window.close(); 
    }
    }
    WO_LS("default.asp",1024,740);</script>
      

  4.   

    这个问题以前已经讨论过了,你可以搜索下,opener=null只对ie5.5以上才效
      

  5.   

    //<input type="button" value="关闭" onclick="opener=null;self.close();">