Element.requestFullscreen

This article is in need of a technical review.

« DOM Reference

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.

Summary

Asynchronously requests that the element be made full-screen.

Syntax

element.mozRequestFullScreen();

Example

Example needed.

Notes

It's not guaranteed that the element will be put into full-screen mode. If permission to enter full-screen mode is granted, the document will receive a "mozfullscreenchange" event to let it know that it's now in full screen mode. If permission is denied, the document receives a "mozfullscreenerror" event instead.

See Using full-screen mode for details and examples.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? 9.0 (9.0) as mozRequestFullScreen ? ? ?
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? 9.0 (9.0) ? ? ?

Specification

None

See also

Document Tags and Contributors

Contributors to this page: Sheppy, fscholz, mattbasta, Jeremie, kscarfone, teoli, iamanupmenon, cpearce
Last updated by: Jeremie,