I have a website, and theres an option in it to make it full screen. Here's the code to make it full screen:
<script>
addEventListener("click", function() {
var
el = document.documentElement
, rfs =
el.requestFullScreen
|| el.webkitRequestFullScreen
|| el.mozRequestFullScreen
;
rfs.call(el);
});
</script>
The problem is, when I show an alert to the user like so:
<script>
function theproblem(){
alert('Y');
//It gets out of fullscreen then.
}
</script>
Then it gets out of fullscreen, and then shows the alert. Is there some way to allow alerts when in full screen mode? Or is it not possible?