Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Detect fullscreen

window.addEventListener('resize', (evt) => {
    if (window.innerHeight == screen.height) {
        console.log('FULL SCREEN');
    } else {
        console.log('NORMAL SCREEN');
    }
});
Source by javascriptf1.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #Detect #fullscreen
ADD COMMENT
Topic
Name
7+6 =