I am trying to use fullscreen api. The API works correctly in all other browsers, but, unfortunately, ie11 is not responding. I am using this code that I copied here:
var element = $doc.documentElement; var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullscreen; if (requestMethod) { // Native full screen. console.log(requestMethod); requestMethod.call(element); } else if (requestMethod !== "undefined") { // Older IE. console.log("window.ActiveXObject !== undefined"); var wscript = new ActiveXObject("Wscript.shell"); wscript.SendKeys("{F11}"); }
Any suggestions?
javascript internet-explorer fullscreen
Tarikguren
source share