provo a farla al volo
function isFullscreen() {
if(top.innerWidth && top.innerWidth > (screen.width-10) && top.innerWidth < (screen.width+10))
return true;
else if(top.document.body.offsetWidth && top.document.body.offsetWidth > (screen.width-10) && top.document.body.offsetWidth < (screen.width+10))
return true;
else return false;
}
if(isFullscreen()) alert("la finestra è in fullscreen");
else alert("la finestra NON è in fullscreen");
una sola controindicazione... la puoi usare solo a pagina caricata su IE

Rispondi quotando