87,907
社区成员
发帖
与我相关
我的任务
分享
function fullscreen() {
Width=screen.availWidth;
Height=screen.availHeight;
window.open(str, '',
'toolbar=no,location=no,directories=no,status=no,menubar=no,'+
'scrollbars=1,resizable=no,copyhistory=1,width='+Width+','+
'height='+Height+',top=0,left=0','replace');
}
试试.
还有一种是Activex不过很少使用这样的方式.
[code=HTML]
<script language="JavaScript">
function WALL_web(){
var WshShell = new ActiveXObject('WScript.Shell')
WshShell.SendKeys('{F11}');
}
</script>
<a href="javascript:WALL_web();">点击全屏</a>