Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8763725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:51:00+00:00 2026-06-13T15:51:00+00:00

Possible Duplicate: Detecting if a browser is in full screen mode I’m working on

  • 0

Possible Duplicate:
Detecting if a browser is in full screen mode

I’m working on a feature that doesn’t behave correctly on Mac OSX when Chrome or FF are in fullscreen. When they are just maximized it works fine. I would like to exclude those browsers from this feature when (and only when) they are in fullscreen. I am having trouble finding a way to detect this though. Does anyone have experience or pointers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T15:51:01+00:00Added an answer on June 13, 2026 at 3:51 pm

    I think you can check if the fullscreenElement is “not null”. Unfortunaly they are all named differently in different browsers, so you need to do something like:

    if ( document.mozFullScreenElement || 
         document.webkitCurrentFullScreenElement ||
         document.fullscreenElement ) { console.log('FULLSCREEN!'); }
    

    Docs (mozilla): https://developer.mozilla.org/en-US/docs/DOM/document.mozFullScreenElement

    You can also attach event handlers to manually keep track of fullscreen states:

    document.addEventListener( 'fullscreenchange', handler, false );
    document.addEventListener( 'mozfullscreenchange', handler, false );
    document.addEventListener( 'webkitfullscreenchange', handler, false );
    
    function handler() {
        // fullscreen mode changed
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Detecting endianness programmatically in a C++ program I am working on a
Possible Duplicate: Detecting SMS incoming and outgoing I want to write a app that
Possible Duplicate: Client-side detection of HTTP request method I'm working on Javascript that is
Possible Duplicate: Detecting Browser exit in PHP I have some user related files in
Possible Duplicate: Detecting CPU architecture compile-time Is there a define that GCC sets which
Possible Duplicate: JavaScript for detecting browser language preference I want to detect the language
Possible Duplicate: JavaScript for detecting browser language preference Is it possible to find from
Possible Duplicate: JavaScript for detecting browser language preference Detect Browser Language in PHP What's
Possible Duplicate: Detecting that the user is away from the PC with .NET I
Possible Duplicate: Detecting heart rate using the camera I am working on detecting pulse

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.