【www.hj8828.com】javascript落实调整浏览器全屏_javascript本领_脚本之家

功能很简单,代码也很简洁,这里就不多废话了

function fullScreen() { var el = document.documentElement, rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullScreen, wscript; if(typeof rfs != "undefined" && rfs) { rfs.call; return; } if(typeof window.ActiveXObject != "undefined") { wscript = new ActiveXObject; if { wscript.SendKeys; } }} function exitFullScreen() { var el = document, cfs = el.cancelFullScreen || el.webkitCancelFullScreen || el.mozCancelFullScreen || el.exitFullScreen, wscript; if (typeof cfs != "undefined" && cfs) { cfs.call; return; } if (typeof window.ActiveXObject != "undefined") { wscript = new ActiveXObject; if  { wscript.SendKeys; } }}

以上所述就是本文的全部内容了,希望大家能够喜欢。