如题

解决方案 »

  1.   

    window.open('example_url.htm','example','fullscreen');// or like thisvar new_window=window.open(url);
    new_window.resizeTo(screen.availWidth,screen.availHeight);
      

  2.   

    <script>function fullScreen(){ this.moveTo(0,0);this.outerWidth=screen.availWidth; 
    this.outerHeight=screen.availHeight;}window.maximize=fullScreen;</script> <a href='#' onClick=”window.open('http://www.yoursite.com/','newWindow','fullScreen=yes');”>Open a full-screen window</a>
      

  3.   

    function maxwin(){
        moveTo(0,0);
        resizeTo(screen.availwidth,screen.availheight);
        if(window.dialogWidth){
    window.dialogWidth = window.screen.availWidth+"px";
    window.dialogHeight = window.screen.availHeight+"px";
    window.dialogTop = "0px";
    window.dialogLeft = "0px";
        }
    }
      

  4.   

    fs=window.open(location.href,'','');
    if(typeof(fs)!="undefined" && typeof(fs.opener)!="undefined"){
    fs.opener.opener=null;
    fs.opener.close();
    }
    }我要求的是是在先关闭一个窗口,在fs上面最大化...
      

  5.   

    window.open('src','','fullscreen');
    window.opener.null;
    window.close();
      

  6.   

    <html>
    <head>
    <script language=javascript> 
      function maxWin() 
      { 
      try 
      { 
        var b = top.screenLeft == 0; 
        var b = b && top.screen.availHeight - top.screenTop - top.body.offsetHeight - 20 == 0; 
        if(!b) 
        { 
          var str   = '<object id=Max classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">' 
            str += '<param name="Command" value="Maximize"></object>';
          document.body.insertAdjacentHTML("beforeEnd", str);
          document.getElementById("Max").Click();
        }
      }catch(e){}
      }
      </script>
    </head>  
      <body onload="maxWin()" onresize="maxWin()">
    </body>
    </html>打开后的按钮加上
      

  7.   

    window.open( '地址 ', '标题 ', 'fullscreen '); 
      

  8.   

    不知道那个risize按钮怎么能够搞定?
    <html>
    <head></head>
    <script language="javascript">
    function openMaxWnd(){
    window.open( "test1.html",
    "newwindow", 
    "resizable=yes,left=0,top=0,width="+(screen.availWidth - 10) +",height=" + (screen.availHeight - 30)
    ); 
    }
    </script>

    <body>
    <input type="button" value="open" onclick="openMaxWnd()"/>
    </body>
    </html>
      

  9.   

    <html>
        <head></head>
        <script language="javascript">
        function openbig(){
            window.open( "test.html",
                "newwindow", 
                "resizable=yes,left=0,top=0,width="+(screen.availWidth - 10) +",height=" + (screen.availHeight - 30)
                ); 
        }
        </script>
        
        <body>
            <input type="button" value="open" onclick="openbig()"/>
        </body>
    </html>