我想问下从一个页面跳转另一个页面,另一个页面实现全屏效果,当时,浏览器不弹出 阻止窗口呢,这是我原来的代码,致命的问题是,浏览器弹出阻止窗口
string tt = " qminoa = window.open('kaoshi.aspx" + "'" + ",'','toolbar=no,menubar=no,titlebar=yes,directories=no,resizable=yes,status=no,fullscreen=no,top=0;left=0,width=900,height=700');";
                          //  Response.Write("<script language=javascript>");
                          //  Response.Write(tt);
                          //  Response.Write("qminoa.moveTo(0,0);");
                          //  Response.Write("qminoa.resizeTo(screen.availWidth,screen.availHeight);");
                          //  Response.Write("window.opener=null;");
                          ////  Response.Write("window.close();");
                          //  Response.Write("</script>");

解决方案 »

  1.   

    改用模式对话框window.showModalDialog试试
      

  2.   

    不行,还是弹出阻止窗口  //Response.Write("<script>window.showModalDialog('accept.aspx')</script>");
            Response.Redirect("accept.aspx");看,第一行代码,还是弹出阻止窗口
    ,第二行就没问题
      

  3.   

    window.showModalDialog吧,
    window.open确实很容易被拦截的.
      

  4.   

    上面的大哥,window.showModalDialog,这个好象不行把//Response.Write(" <script>window.showModalDialog('accept.aspx') </script>"); 
    我都试过了
      

  5.   

    或者说这样呢?
    function ShowForm() 
    {
    var  NewWin = window.open(strUrl,"_blank","....."); 
    NewWin.focus(); 
    return false; 
    }
      

  6.   

    window.open(),这个肯定窗口要阻止的,难道没有解决的方法了吗??
      

  7.   

    window.showModalDialog xp sp2就不可以了
    关键你是要全屏,要不可以用层来模拟
      

  8.   

    除了用DIV模拟没有更好的方法了吗,主要第二个页面布局麻纺,