window.addEventListener("mozfullscreenchange", onfullscreenchange);
var onfullscreenchange = function(e){
var fullscreenElement =
document.mozFullscreenElement;
var fullscreenEnabled =
element.mozFullscreenEnabled ||
console.log( 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA fullscreenEnabled = ' + fullscreenEnabled, ', fullscreenElement = ', fullscreenElement, ', e = ', e);
}
|