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.onfullscreenerror property is an event handler for the fullscreenchange event that is fire when a document goes that cannot go in fullscreen mode, even it has been requested.

Syntax

targetDocument.onfullscreenerror = fullscreenErrorHandler;

Example

document.onfullscreenerror = function ( event ) { 
  console.log("FULL SCREEN DENIED")
}; 

// requestFullscreen() will fail because it is outside of an event handler
document.documentElement.requestFullscreen();

Specifications

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

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 45Edge ? Firefox Full support 64
Full support 64
Full support 47
Disabled
Disabled From version 47: this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE ? Opera ? Safari ? WebView Android Full support 45Chrome Android Full support 45Edge Mobile ? Firefox Android Full support 64
Full support 64
Full support 47
Disabled
Disabled From version 47: this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
User must explicitly enable this feature.
User must explicitly enable this feature.

See also

Autorzy i etykiety dokumentu

Autorzy tej strony: fscholz, jpmedley, teoli
Ostatnia aktualizacja: fscholz,