想了很长时间一直没搞定,比较郁闷,不知道大家有什么办法问题:
使用javascript屏蔽【当前窗口】的菜单栏和工具栏注意:上面说的是当前浏览器窗口,不是open打开的新的窗口,那样是很容易实现的不知道在当前窗口中如何屏蔽菜单栏和工具栏分不是问题,只要解决,必当重谢!

解决方案 »

  1.   

    打开这个页面的时候用window.open 行吗
      

  2.   

    window.locationbar.visible=0
    window.menubar.visible=0
    window.personalber.visible=0
    window.scroollbars.visible=0
    window.statusbar.visible=0
    window.toolbar.visible=0
      

  3.   

    的确可以通过JS模拟F11按键,但这好象不是LZ想要的屏蔽效果^_^
      

  4.   

    JS是搞不定的,除非用签名过的ActiveX/Applet等控件。这是浏览器安全性问题,就像JS不能直接调用/执行本地文件一样。
      

  5.   


    这个已经从IE6出生讨论到现在了,有意义吗? 纯JS的解决方案就是没有,而且我100%肯定。这个没有,真的没有。
      

  6.   

    找了很久 找了一个最简单的方法 就是window.open(URL,'name','fullscreen=0')
      

  7.   

    以下纯属理论,更有可能是瞎扯
    在IE里面当打开一个新的IE框时,如果要去掉地址栏、菜单,可以通过右键来取消。那里这里会不会有一个配置是写在注册表里面的呢?可不可以去修改注册表或者是IE安装目录下的某些文件……
      

  8.   

    好不容易找到个貌似你试下可以的我试了http://topic.csdn.net/t/20040330/18/2905290.html
      

  9.   

    <html ><head fullscreen="0">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" >
    <title>新建网页 1</title><SCRIPT   language=Javascript1.2   type=text/javascript>  
      <!--  
      function   addbook(){  
      alert("IE   only")}  
      var   mode=0  
      var   old=new   Array();  
      function   fullme(e){  
      if(mode==0){  
      if(typeof   document.all!='undefined'){  
      if(top.document.body.offsetWidth==screen.availWidth){  
      //alert("信息提示:你的浏览器已被锁定视窗最大化,无法启用全屏模式!");  
      e.returnValue=false;  
      return   false;  
      }  
      top.moveBy(e.clientX-e.screenX,e.clientY-e.screenY);  
      top.resizeBy(screen.availWidth-top.document.body.offsetWidth,  
      screen.availHeight-top.document.body.offsetHeight);  
      }else{  
      window.top.moveTo(0,0);  
      window.top.resizeTo(screen.availWidth   ,screen.availHeight   );  
      old[0]=window.toolbar.visible;  
      old[1]=window.statusbar.visible;  
      old[2]=window.menubar.visible;  
        window.toolbar.visible=false;  
      window.statusbar.visible=false;  
        window.menubar.visible=false;  
      }  
      mode=1;  
      }else{  
      if(typeof   document.all!='undefined'){  
      top.moveTo(10,10);  
      top.resizeTo(screen.availWidth   ,screen.availHeight   );  
      }else{  
      window.toolbar.visible=old[0];  
      window.statusbar.visible=old[1];  
      window.menubar.visible=old[2];  
      }  
      mode=0;  
      }  
      return   true;  
      }  
         
      --></SCRIPT>   
      
    </head><body  scroll=no   onload=fullme(event)>
    <div ></div>
    </body></html>可以去除实现才知道不会的了,不要妄下结论
      

  10.   

    貌似都是假的
    与open出来的没法比楼主还是open吧
      

  11.   

      自己的想法:
       先搞个没有地址栏工具栏的 像WF的页面 然后页面加 <base target="_self" />
       从这个页面打开的页面都会是这个样子    第一次可以用空的页面转接过去   自己的想法
      

  12.   

    [Quote=引用 35 楼 lianhui1122 的回复:]
    引用 30 楼 jaylongli 的回复:
     HTML code <html> <headfullscreen="0"> <metahttp-equiv="Content-Type" content="text/html; charset=gb2312"> <title>新建网页 1 </title> <SCRIPTlanguage=Javascript1.2type=text/javascript> <!--function   addbook(){
       alert("IE   only")}var   mode=0var   old=new   Array();function   fullme(e){if(mode==0){if(typeof   document.all!='undefined'){if(top.document.body.offsetWidth==screen.availWidth){//alert("信息提示:你的浏览器已被锁定视窗最大化,无法启用全屏模式!");  e.returnValue=false;returnfalse;
       }
       top.moveBy(e.clientX-e.screenX,e.clientY-e.screenY);
       top.resizeBy(screen.availWidth-top.document.body.offsetWidth,
       screen.availHeight-top.document.body.offsetHeight);
       }else{
       window.top.moveTo(0,0);
       window.top.resizeTo(screen.availWidth   ,screen.availHeight   );
       old[0]=window.toolbar.visible;
       old[1]=window.statusbar.visible;
       old[2]=window.menubar.visible;
         window.toolbar.visible=false;
       window.statusbar.visible=false;
         window.menubar.visible=false;
       }
       mode=1;
       }else{if(typeof   document.all!='undefined'){
       top.moveTo(10,10);
       top.resizeTo(screen.availWidth   ,screen.availHeight   );
       }else{
       window.toolbar.visible=old[0];
       window.statusbar.visible=old[1];
       window.menubar.visible=old[2];
       }
       mode=0;
       }returntrue;
       }--> </SCRIPT> </head> <bodyscroll=noonload=fullme(event)> <div> </div> </body> </html> 
    这样写肯定是有问题的。
      

  13.   

    还是F11好,在firefox3.5下真是全屏
      

  14.   

    谢谢jaylongli兄弟的热情回答的确是用js屏蔽比较困难的谢谢大家的回答