<body OnbeforeunLoad="DesignerWizWin.close()">

解决方案 »

  1.   

    不行……我再说一下 我是在 2 秒后指向的http://51st.51.net/nuke/index.htm网页内想将前面弹出的窗口 DesignerWizWin 去掉楼上的方法试过了 出错说DesignerWizWin没定义
    我在本机上试时 没出错 但也没用
      

  2.   

    try<html> 
    <head> 
    <title>URL</title> 
    <META HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312"> 
    <META HTTP-EQUIV="REFRESH" CONTENT="2; URL=http://51st.51.net/nuke/index.htm"> 
    <script language="javascript">
    var DesignerWizWin;
    </script>
    </head> 
    <body Onload="DesignerWizWin=window.open('http://mydns.chinadns.com/popup.htm', 'popup', 'toolbar=0, location=0, directories=0, menuBar=0, scrollbars=0, resizable=0, width=433, height=195, left=200, top=200');" Onbeforeunload="if (!DesignerWizWin.closed) DesignerWizWin.close()"> 
    </body> 
    </html>
      

  3.   

    一点REFRESH,窗口实际上是个新窗口了,原窗口中的一切对象,包括DesignerWizWin,都无法引用了可以用setTimeout()代替META实现REFRESH,在刷新之前先关闭DesignerWizWinsetTimeout(2000,"closeDesignerWizWin();");function DesignerWizWin()
    {
    if(this.DesignerWizWin //确保DesignerWizWin对象存在
    && !DesignerWizWin.closed)
    DesignerWizWin.close();
    }
      

  4.   

    上面忘了刷新窗口了setTimeout(2000,"refresh_and_close();");
    function refresh_and_close()
    {
    this.location.reload(); //刷新当前窗口
    this.locatoin.url = "http://51st.51.net/nuke/index.htm"; //刷新当前窗口的另一种办法if(this.DesignerWizWin //确保DesignerWizWin对象存在
    && !DesignerWizWin.closed) //未关闭
    DesignerWizWin.close(); //则关闭
    }
      

  5.   

    反了,应该先关闭再刷新setTimeout(2000,"refresh_and_close();");
    function refresh_and_close()
    {
    if(this.DesignerWizWin //确保DesignerWizWin对象存在
    && !DesignerWizWin.closed) //未关闭
    DesignerWizWin.close(); //则关闭this.location.reload(); //刷新当前窗口
    this.locatoin.url = "http://51st.51.net/nuke/index.htm"; //刷新当前窗口的另一种办法
    }
      

  6.   

    看来没办法了啦因为我根本就没有操作第一页的权利我只能操作http://51st.51.net/nuke/index.htm