document.mozFullScreenElement

  • Revision slug: DOM/document.mozFullScreenElement
  • Revision title: document.mozFullScreenElement
  • Revision id: 9013
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment 4 words added, 4 words removed

Revision Content

{{ DomRef() }}

{{ non-standard_header() }}

Summary

Returns the {{ domxref("Element") }} that is currently being presented in full-screen mode in this document, or null if full-screen mode is not currently in use.

Syntax

var element = document.mozFullScreenElement;

On return, element is the {{ domxref("element") }} that is currently in full-screen mode, or null if full-screen mode isn't currently in use by the document.

Example

Needs example.

Notes

See Using full-screen mode for details and examples.

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{ CompatUnknown() }} {{ CompatGeckoDesktop("9.0") }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{ CompatUnknown() }} {{ CompatGeckoMobile("9.0") }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}

Specification

Not part of any specification.

See also

  • Using full-screen mode
  • {{ domxref("element.mozRequestFullScreen()") }}
  • {{ domxref("document.mozCancelFullScreen()") }}
  • {{ domxref("document.mozFullScreen") }}
  • {{ domxref("document.mozFullScreenEnabled") }}
  • {{ cssxref(":-moz-full-screen") }}
  • {{ HTMLAttrXRef("mozallowfullscreen", "iframe") }}

Revision Source

<p>{{ DomRef() }}</p>
<p>{{ non-standard_header() }}</p>
<h3 name="Summary">Summary</h3>
<p>Returns the {{ domxref("Element") }} that is currently being presented in full-screen mode in this document, or <code>null</code> if full-screen mode is not currently in use.</p>
<h3 name="Syntax">Syntax</h3>
<pre class="eval"><em>var element</em> = <em>document</em>.mozFullScreenElement;
</pre>
<p>On return, element is the {{ domxref("element") }} that is currently in full-screen mode, or <code>null</code> if full-screen mode isn't currently in use by the document.</p>
<h3 name="Example">Example</h3>
<p>Needs example.</p>
<h3>Notes</h3>
<p>See <a href="/en/DOM/Using_full-screen_mode" title="en/DOM/Using full-screen mode">Using full-screen mode</a> for details and examples.</p>
<h3 name="Specification">Browser compatibility</h3>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatGeckoDesktop("9.0") }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> </tr> </tbody> </table>
</div>
<div id="compat-mobile"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatGeckoMobile("9.0") }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> </tr> </tbody> </table>
</div>
<h3 name="Specification">Specification</h3>
<p>Not part of any specification.</p>
<h3>See also</h3>
<ul> <li><a href="/en/DOM/Using_full-screen_mode" title="en/DOM/Using full-screen mode">Using full-screen mode</a></li> <li>{{ domxref("element.mozRequestFullScreen()") }}</li> <li>{{ domxref("document.mozCancelFullScreen()") }}</li> <li>{{ domxref("document.mozFullScreen") }}</li> <li>{{ domxref("document.mozFullScreenEnabled") }}</li> <li>{{ cssxref(":-moz-full-screen") }}</li> <li>{{ HTMLAttrXRef("mozallowfullscreen", "iframe") }}</li>
</ul>
Revert to this revision