VOOZH about

URL: https://www.geeksforgeeks.org/html/html-dom-fullscreenenabled-method/

⇱ HTML DOM fullscreenEnabled() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML DOM fullscreenEnabled() Method

Last Updated : 11 Jul, 2025

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:

Output:👁 check_fullscreen_output

Example 2:

Output:

👁 go-fullscreen-output
Supported Browsers: The browser supported by fullscreenEnabled() method are listed below:

Comment
Article Tags: