Window.fullScreen

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

Revision Content

{{template.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.

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 ({{template.Bug(127013)}}).

{{ wiki.languages( { "ja": "ja/DOM/window.fullScreen" } ) }}

Revision Source

<p>
{{template.DomRef()}}
</p>
<h3 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 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.
</p>
<h3 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 name="Examples"> Examples </h3>
<h3 name="Specification"> Specification </h3>
<p>DOM Level 0. <code>window.fullScreen</code> is not part of any W3C specification or technical recommendation.
</p>
<h3 name="Notes"> Notes </h3>
<p>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 ({{template.Bug(127013)}}).
</p>
<div class="noinclude">
</div>
{{ wiki.languages( { "ja": "ja/DOM/window.fullScreen" } ) }}
Revert to this revision