IE无菜单栏标题栏、工具栏、全屏显示

来源:互联网 发布:算法的发展方向 编辑:程序博客网 时间:2024/05/27 09:47
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
  2. <html xmlns="http://www.w3.org/1999/xhtml">  
  3. <head>  
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  5. <title>IE无菜单栏全屏显示</title>  
  6. </head>  
  7. <SCRIPT   language="JavaScript">     
  8.     function   toFull(){     
  9.     if(window.name=="fullscreen")return;     
  10.   var   a   =window.open("","fullscreen","fullscreen=yes")     
  11.   a.location   =   window.location.href     
  12.   window.opener=null     
  13.   window.close()     
  14.     }     
  15.       
  16.  </SCRIPT>   
  17.    
  18.   <body onload=" toFull() ">     
  19.    
  20.    <input   type=button   value=关闭   onclick=window.close()>  
  21.   
  22.   </body>     
  23.   
  24. </html>