Window.fullScreen

  • Revision slug: DOM/window.fullScreen
  • Revision title: window.fullScreen
  • Revision id: 286914
  • Created:
  • Creator: Mvent2
  • Is current revision? No
  • Comment /* Syntax */

Revision Content

{{ DomRef() }}

Summary

This property 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.

Syntax

var 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

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

Examples

Specification

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

Notes

  • 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.



{{ languages( { "es": "es/DOM/window.fullScreen", "fr": "fr/DOM/window.fullScreen", "ja": "ja/DOM/window.fullScreen" } ) }}

Revision Source

<p>
{{ DomRef() }}
</p>
<h3 id="Summary" name="Summary"> Summary </h3>
<p>This property 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.
</p>
<h3 id="Syntax" name="Syntax"> Syntax </h3>
<pre class="eval">var <var>isInFullScreen</var> = <var>windowRef</var>.fullScreen;
</pre>
<p><br>
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.
</p>
<h3 id="Return_Value" name="Return_Value"> Return Value </h3>
<dl><dt> <code>isInFullScreen</code> </dt><dd> A boolean. Possible Values:
</dd></dl>
<ul><li> <code>true</code>: The window is in full screen mode.
</li><li> <code>false</code>: The window is not in full screen mode.
</li></ul>
<h3 id="Examples" name="Examples"> Examples </h3>
<h3 id="Specification" name="Specification"> Specification </h3>
<p>DOM Level 0. <code>window.fullScreen</code> is not part of any W3C specification or technical recommendation.
</p>
<h3 id="Notes" name="Notes"> Notes </h3>
<ul><li>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 <code>false</code>, even when the window is in full screen mode ({{ Bug(127013) }}).
</li><li>Switching between regular window and full screen will fire the "resize" event on the corresponding window.
</li></ul>
<p><br>
</p><p><br>
</p>
<div class="noinclude">
</div>
{{ languages( { "es": "es/DOM/window.fullScreen", "fr": "fr/DOM/window.fullScreen", "ja": "ja/DOM/window.fullScreen" } ) }}
Revert to this revision