Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

exit from fullscreen

const exitBtn = document.getElementById('exit-btn');

exitBtn.addEventListener('click', ()=>{
    if (document.fullscreenElement) {
        document.exitFullscreen();
    }
});
Source by javascriptf1.com #
 
PREVIOUS NEXT
Tagged: #exit #fullscreen
ADD COMMENT
Topic
Name
8+9 =