I use launchFullscreen() function for get page full screen. It\'s work perfect with button onClick.But It doesn\'t work with window.onload
I work around the "must be user action" by binding it to a click event on the HTML element.
$('html').click( function() {
if(!document.fullscreenElement){
$('html')[0].requestFullscreen();
}
});
You just need to remember to touch something once it is loaded. Even if you forgot, the first click will put the page to full screen.
p.s.: Yes, you can easily do this without using jQuery by using proper getElement... functions.