Nasi wolontariusze nie przetłumaczyli jeszcze tego artykułu na język Polski. Dołącz do nas i pomóż go przetłumaczyć!
Można także przeczytać artykuł w języku: English (US).

The Document.fullscreenEnabled read-only property returns a Boolean that reports whether or not full-screen mode is available. Full screen mode is available only for a page that has no windowed plug-ins in any of its documents, and if all <iframe> elements which contain the document have their allowfullscreen attribute set.

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.


var isFullscreenAvailable = document.fullscreenEnabled;

On return, isFullscreenAvailable is true if the document can be put into full-screen mode.


function requestFullScreen() {
  if (document.fullscreenEnabled) {
  } else {
    console.log('Your browser cannot use fullscreen right now');


Specification Status Comment
Fullscreen API
The definition of 'Document.fullscreenEnabled' in that specification.
Living Standard Initial definition

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes)-webkit
45 (unprefixed)
10.0 (10.0) as mozFullScreenEnabled
47.0 (47.0) (behind full-screen-api.unprefix.enabled
? ? ?
Feature Android Webkit Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes)-webkit
45 (unprefixed)
45 (unprefixed)
10.0 (10.0)as mozFullScreenEnabled
47.0 (47.0) (behind full-screen-api.unprefix.enabled
? ? ?

See also

Autorzy i etykiety dokumentu

 Ostatnia aktualizacja: jpmedley,