HTML DOM fullscreenEnabled() Method Last Updated : 11 Jul, 2025 Comments Improve Suggest changes Like Article Like Report The fullscreenEnabled() method in HTML DOM is used to check whether the document can be viewed in full-screen mode or not. It returns a single read-only Boolean value. This method may require specific prefixes to work with different browsers. Syntax:document.fullscreenEnabled()Parameters: This method does not accept any parameters. Return Value: It returns a boolean value:True: If the document can be viewed in full-screen mode.False: If the document cannot be viewed in full-screen mode.Example 1: html <!DOCTYPE html> <html> <head> <title> HTML DOM fullscreenEnabled() method </title> <!-- script to check full screen enabled or not --> <script> function requestFullScreen() { let isFullscreenSupported = /* Standard syntax */ (document.fullscreenEnabled || /* Chrome, Safari and Opera */ document.webkitFullscreenEnabled || /* Firefox */ document.mozFullScreenEnabled || /* IE/Edge */ document.msFullscreenEnabled); document.querySelector('.isSupported').innerHTML = isFullscreenSupported; } </script> </head> <body> <h1> GeeksforGeeks </h1> <h2> fullscreenEnabled() method </h2> <!-- script called here --> <button onclick="requestFullScreen();"> Check fullscreen supported </button> <p>Fullscreen support:</p> <div class="isSupported"></div> </body> </html> Output: Example 2: html <!DOCTYPE html> <html> <head> <title> HTML DOM fullscreenEnabled() method </title> <!-- script to enable full screen --> <script> function goFullScreen() { if ( /* Standard syntax */ document.fullscreenEnabled || /* Chrome, Safari and Opera */ document.webkitFullscreenEnabled || /* Firefox */ document.mozFullScreenEnabled || /* IE/Edge */ document.msFullscreenEnabled ) { elem = document.querySelector('#image'); elem.requestFullscreen(); } else { console.log('Fullscreen not enabled') } } </script> </head> <body> <h1>GeeksforGeeks</h1> <h2> HTML DOM fullscreenEnabled() method </h2> <img id="image" src= "https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-logo.png" /> <br> <button onclick="goFullScreen();"> Fullscreen </button> </body> </html> Output: Supported Browsers: The browser supported by fullscreenEnabled() method are listed below:Google ChromeEdge FirefoxOperaSafari Create Quiz Comment S sayantanm19 Follow 0 Improve S sayantanm19 Follow 0 Improve Article Tags : Web Technologies HTML HTML-DOM Explore HTML BasicsHTML Introduction4 min readHTML Editors4 min readHTML Basics7 min readStructure & ElementsHTML Elements4 min readHTML Attributes7 min readHTML Headings3 min readHTML Paragraphs3 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists3 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks2 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables9 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms4 min readHTML5 Semantics5 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List5 min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like