jQuery("#fullBtn").text(" 全屏显示");
function fullscreen(){
//模拟F11
var WsShell = new ActiveXObject('WScript.Shell')
WsShell.SendKeys('{F11}');
//全屏状态下
if(isFull=="full"){
jQuery(parent._ChildMenu).show();
jQuery(parent._TableHeader).show();
jQuery("#fullBtn").text(" 全屏显示");
isFull="";
return;
}
//
jQuery(parent._ChildMenu).hide();
jQuery(parent._TableHeader).hide();
jQuery("#fullBtn").text(" 退出全屏");
isFull="full";
}
Javascript在IE下控制浏览器全屏
最新推荐文章于 2020-09-17 10:18:28 发布