Skip to content
Related Articles
Open in App
Not now

Related Articles

Web Window API | DOM Window fullscreen property

Improve Article
Save Article
  • Last Updated : 31 Jul, 2019
Improve Article
Save Article

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+
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!