Skip to content Skip to sidebar Skip to footer

Fullscreenchange Event Not Work

I try bind FullScreenChange event, but it not work. Maybe i did something wrong? $(document).bind('webkitfullscreenchange mozfullscreenchange fullscreenchange',function(){ if(docum

Solution 1:

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

Solution 2:

This worked for me:

window.onresize = resize
functionresize() {
  //code
}

Post a Comment for "Fullscreenchange Event Not Work"