The fullScreen property of the Window interface indicates whether the window is displayed in full screen mode or not. It is only reliable in Gecko 1.9 (Firefox 3) and later; see the Notes below.


isInFullScreen = windowRef.fullScreen;

With chrome privileges, the property is read-write, otherwise it is read-only. Bear in mind that if you try to set this property without chrome privileges, it will not throw an exception and instead just silently fail. This is to prevent scripts designed to set this property in Internet Explorer from breaking.

Return value

A boolean. Possible Values:
  • true: The window is in full screen mode.
  • false: The window is not in full screen mode.


if (window.fullScreen) {
  // it's fullscreen!
else {
  // not fullscreen!


DOM Level 0. window.fullScreen is not part of any W3C specification or technical recommendation.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Chrome No support NoEdge ? Firefox Full support 3IE No support NoOpera ? Safari ? WebView Android No support NoChrome Android No support NoFirefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android No support No


Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.


  • This property is only reliable in Mozilla 1.9 (Firefox 3) and later. Mozilla 1.8 and earlier do have this property, but it always returns false, even when the window is in full screen mode (bug 127013).
  • Switching between regular window and full screen will fire the "resize" event on the corresponding window.
  • This property does not exist in Internet Explorer and Chrome.