Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Nos bénévoles n'ont pas encore traduit cet article en Français. Aidez-nous à réaliser cette tâche !

Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

The Document.fullscreen read-only property reports whether or not the document is currently displaying content in fullscreen mode.

Although this property is read-only, it will not throw if it is modified (even in strict mode); the setter is a no-operation and it will be ignored.

This property is deprecated; test if Document.fullscreenElement is not null instead.

Syntax

var isFullScreen = document.fullscreen;

Return value

  • A Boolean that is true if the document is being displayed in fullscreen mode; otherwise it's false.

Example

function isDocumentInFullScreenMode() {
  // Better: use fullscreenElement method!
  return document.fullscreen;  
}

Specifications

Specification Status Comment
Fullscreen API
The definition of 'Document.fullscreen' in that specification.
Living Standard Initial definition (as an obsolete property).

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) as webkitIsFullScreen 9.0 (9.0) as mozFullScreen
49.0 (49.0) (behind full-screen-api.unprefix.enabled
? ? (Yes) as webkitIsFullScreen
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? 9.0 (9.0) as mozFullScreen
49.0 (49.0) (behind full-screen-api.unprefix.enabled
? ? ?

See also

Étiquettes et contributeurs liés au document

 Dernière mise à jour par : teoli,