I am writing a web app for a specific android device. This "website" schould be displayed in fullscreen mode.
I found the code above here in stack overflow and it works fine with an click event, although the page should automaticaly open and stay in fullscreen when I am entering the site.
I understand the code, but the load event does not work. Is there any way, javascript, jquery to archieve this goal?
<script>
var el = document.documentElement,
rfs = el.requestFullscreen
|| el.webkitRequestFullScreen
|| el.mozRequestFullScreen
|| el.msRequestFullscreen
;
rfs.call(el);
</script>