IE 11 not listening to MSFullscreenChange

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2014-08-18T16:18:07Z Indexed on 2014/08/18 16:21 UTC
Read the original article Hit count: 680

IE 11 does not seem to be recognizing MSFullscreenChange. I have this code in the script:

document.addEventListener("MSFullscreenChange", function () {
        if (document.msFullscreenElement != null) {
            console.info("Went full screen");
        } else {
            console.info("Exited full screen");
        }
});

In other words, I'm using the exact code shown here on Microsoft's own site, but nothing's being printed out in the console, and I know fullscreen is enabled.

I also noticed I'm getting the SEC7118 message: XMLHttpRequest for https://gdata.youtube.com/feeds/api/videos/qywzeXowktA?v=2&alt=json required Cross Origin Resource Sharing (CORS). That wouldn't be affecting it, would it?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about internet-explorer