I try bind FullScreenChange event, but it not work. Maybe i did something wrong?
$(document).bind('webkitfullscreenchange mozfullscreenchange fullscreenchange',function(){
if(document.fullScreen){
    console.log('Go to Full Screen mode');
    }else{
    console.log('Exit Full Screen mode');
    }
});
                You probably need to use the vendor specific prefix for the document.fullScreen property
var isFullScreen = document.fullScreen || 
                   document.mozFullScreen || 
                   document.webkitIsFullScreen;
Further information available here:
https://developer.mozilla.org/en-US/docs/DOM/Using_fullscreen_mode
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With