javascript 窗口全屏

最佳方案:

<body onload= "var a=window.open('','fullscreen','fullscreen=yes');a.location = window.location.href;" >

 

 

 

 

< script >
<!--
function  fullwin(){
window.open(
" bigpage.html " , " bfs " , " fullscreen,scrollbars " )
}
// -->
</ script >

 

 

 

<script language="JavaScript">
function Fkey(){
     var WsShell = new ActiveXObject('WScript.Shell')
     WsShell.SendKeys('{F11}');
}
</script>

 

 

 

 

<SCRIPT language="JavaScript">  
function   toFull(){  
  if(window.name=="fullscreen")return;  
  var a =window.open("","fullscreen","fullscreen=yes");  
  a.location = window.location.href   ;
  //window.opener=null  ;
  //window.close()  
}  
</SCRIPT> 

 

 

 

 

 

 

不算真的:

window.moveTo(0, 0);
window.resizeTo(screen.availWidth-50, screen.availHeight);

 

 

window.open('mypage.html','mypage','fullscreen=yes,scrollbars=yes')

 

 

 

 


 


你可能感兴趣的:(javascript 窗口全屏)