如果页面'a.htm'是被其它页面打开的,那么在执行windows.close()时是不弹出警告提示的。

解决方案 »

  1.   

    比如我用b.htm打开a.htm,执行完window.open()后再执行windows.close()关闭b.htm自己时总是要弹出“你查看的web页正在试图关闭窗口,是否关闭此窗口?”还要点一下确定才关闭。
      

  2.   

    self.close()保证你没有提示框!
      

  3.   

    to:mim  怎么用的呀?我用着不行呀!!仍弹出“你查看的web页正在试图关闭窗口,是否关闭此窗口”
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <script language="JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
      self.close();
    }
    //-->
    </script>
    </head><body bgcolor="#FFFFFF" text="#000000" onLoad="MM_openBrWindow('d.htm','','width=300,height=200')">
    </body>
    </html>
      

  4.   

    http://member.netease.com/~carboy/tucows/files/jdk1.1-beta3-win32-x86.exe
      

  5.   

    http://member.netease.com/~carboy/tucows/files/jdk1.1-beta3-win32-x86.exe
    ^_^ 楼上的楼上 好像是一个jdk1.1-beta3-win32-x86.exe
       应用程序
      

  6.   

    有办法, 有许多. 去google搜
      

  7.   

    楼上说的是我明白了为什么用window.open打开的页面用window.close关闭时不提示,是因为三无的页面关闭时不提示,可我也没法保证母窗口三无,是不是没法自己设置,在打开页面的同时就设置成三无?还有没有其他的较好的解决方案?