复制代码代码如下:
функция FullScreen () {
var el = document.documentelement;
var rfs = el.requestfullscreen || el.webkitrequestfullscreen || el.mozrequestfullscreen || el.msrequestfullscreen;
if (typeof rfs! = "undefined" && rfs) {
rfs.call (el);
} else if (typeof window.activexObject! = "undefined") {
// для интернет -исследователя
var wscript = new ActivexObject ("wscript.shell");
if (wscript! = null) {
wscript.sendkeys ("{f11}");
}
}
}