Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

detect fullscreen mode

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