Please think about the answer to this question here, even if you marked it as a duplicate , because for some reason I just can not get it to work with other solutions, and although I tried to ask for help, nobody answered ...
I really want to $(document).ready(function(){browser goes fullscreen}), but, unfortunately, it does not work, and I am desperately trying to find a solution online, because nothing works! I have a js file well pasted into my main php file (console.log works), but it just won’t load full screen mode regardless of lines of code ...
If you can provide a solution for working in all browsers and with activated keys , I would really be grateful. Otherwise, I will downplay myself using Google's chrome response. Thank you very much.
EDIT1:
I tried this
element.requestFullScreen();
document.cancelFullScreen();
element.webkitRequestFullScreen();
document.webkitCancelFullScreen();
element.mozRequestFullScreen();
document.mozCancelFullScreen();
element.requestFullscreen();
document.exitFullscreen();
The following user can only interact with the user:
addEventListener("click", function() {
var
el = document.documentElement
, rfs =
el.requestFullScreen
|| el.webkitRequestFullScreen
|| el.mozRequestFullScreen
;
rfs.call(el);
});
among others I cannot find now, and basically I combined them with $(document).ready(function(){---});, but nothing happened.
source
share