javascript - IE 11 Full screen issues -


var infullscreen = false; // flag show when full screen  var fsclass = document.getelementsbyclassname("imgfullnormal"); (var = 0; < fsclass.length; i++) {     fsclass[i].addeventlistener("click", function (evt) {         if (infullscreen == false) {             makefullscreen(evt.target); // open full screen         } else {             reset();         }     }, false); }  function makefullscreen(divobj) {     if (divobj.requestfullscreen) {         divobj.requestfullscreen();     }     else if (divobj.msrequestfullscreen) {         divobj.msrequestfullscreen();     }     else if (divobj.mozrequestfullscreen) {         divobj.mozrequestfullscreen();     }     else if (divobj.webkitrequestfullscreen) {         divobj.webkitrequestfullscreen();     }     infullscreen = true;     return; }  function reset() {     if (document.exitfullscreen) {         document.exitfullscreen();     }     else if (document.msexitfullscreen) {         document.msexitfullscreen();     }     else if (document.mozcancelfullscreen) {         document.mozcancelfullscreen();     }     else if (document.webkitcancelfullscreen) {         document.webkitcancelfullscreen();     }     infullscreen = false;     return; } 

using above code able make both ie , mozila firefox full screen. turns black, mean background.

basically there button on page. want show page on full screen mode clicking of button.

some 1 please help.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -