我要的是一种,没有地址栏,没有最大化,最小化,关闭按钮的全屏显示

解决方案 »

  1.   

    window.open(document.location, 'big', 'fullscreen=yes')
      

  2.   

    js 触发 键盘的 F11 键
      

  3.   

    还有种方法:
                    var V,N,X;
    V=navigator.appVersion;   
    N=navigator.appName;
    X=0;
    if(N=="Microsoft Internet Explorer")     
    X=parseFloat(V.substring(V.indexOf("MSIE")+5,V.lastIndexOf("Windows")));
            var sWidth = screen.availWidth;
            var sHeight = screen.availHeight;
    if (X > 6.0)
    {
        window.moveTo(-9,-65);
        window.resizeTo(sWidth + 19, sHeight + 71);
    }
    else
    {
        window.moveTo(0,0);
        window.resizeTo(sWidth, sHeight);
    }
      

  4.   

    <html>
    <head>
       <title>
       </title>
       <script type="text/javascript">
        function $(id){return document.getElementById(id)}   
        function loadListener(){
         $("testBtn").onclick=function(){
         var WshShell = new ActiveXObject('WScript.Shell')
          WshShell.SendKeys('{F11}');
         }
        }  
        window.attachEvent("onload",loadListener); 
       </script>
       <body>
        <input type="button" id="testBtn" value="点我全屏化">
       </body>
    </head>
    </html>
      

  5.   

    var webURL="http://www.baidu.com";
    window.open(webURL,"","fullscreen,scrollbars=no");
      

  6.   

    现在的浏览器为安全考虑,在js触发F11的时候都会弹出警告框!
      

  7.   

    window.open(webURL,"","fullscreen,scrollbars=no"); 
    open的里面设置参数
      

  8.   

    <script>
    window.open("http://www.baidu.com","","fullscreen=yes"); 
    </script>