fullscreenchange event not working

trying to get fullscreen mode in js when user goes fullscreen and out from it
FULLSCREENCHANGE EVENT NOT FIRING

Submitted by Super User On Thursday, 04 May 2017.
Category: Javascript

[RESOLVED]

0
1 Answers.
 
sunil
expert

Re:fullscreenchange event not working

maybe due to security issue, but you can try this one if "mode" is not a really issue, but size of screen

var $win = $(window); 
$win.on("resize", function(){ 
        var isFullscreen = $win.width() == screen.width && $win.height() == screen.height; 
        console.log("isFullscreen", isFullscreen) 
})
Submitted by sunil On Thursday, 04 May 2017
0
This Answer has been Chosen as Best Answer
Question is marked as resolved.