在父窗口open一个子窗口后,想要把父窗口用windows.close关掉,但是父窗口会弹出是否关闭窗口对话框,如何不让它弹出这个对话框

解决方案 »

  1.   

    不行
    function FrameOpen() {
    window.open("Frame.aspx", "_blank", 'toolbar=no,location=no,resizable=yes,status=yes,width=1020,height=700,Left=0,top=0' );
    window.close();
    window.opener=null;
    }
      

  2.   

    this.Response.Write("<script>");
    this.Response.Write("{top.opener =null;top.close();}");
    this.Response.Write("</script>");
      

  3.   

    <script>window.opener=null;window.close();</script>
      

  4.   

    function FrameOpen() {
    window.open("Frame.aspx", "_blank", 'toolbar=no,location=no,resizable=yes,status=yes,width=1020,height=700,Left=0,top=0' );
    window.opener=null;
    window.close();
    }
      

  5.   

    window.opener=null;
    window.close();
      

  6.   

    Response.Write("<script>window.opener=null;window.close();</script>");