Checking if browser is in fullscreen [duplicate]

This works for all new browsers :

if (!window.screenTop && !window.screenY) {
    alert('Browser is in fullscreen');
}

Leave a Comment