Skip to content
Related Articles

Related Articles

Web Window API | DOM Window fullscreen property
  • Last Updated : 31 Jul, 2019

The Window interface has a fullscreen property which tells whether the window is displayed in fullscreen mode or not.


BoolVal = windowReference.fullScreen;

Return value:

    • True: If windows is in fullscreen mode.
    • False: If windows are not in fullscreen mode.

Example :

<!DOCTYPE html>
        Window fullscreen property
        <h1 style="color:green;"
        <h2>Window fullscreen property</h2>
        <button onclick="GFGfun();">press</button>
            function GFGfun() {

Window not in fullscreen:

Window in fullscreen:

Browser support:

  • Firefox 3+

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :