I volontari di MDN non hanno ancora tradotto questo articolo in Italiano. Unisciti a noi e traducilo tu stesso.
Puoi anche consultare l’articolo in 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

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support45 ?471 ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support4545 ?471 ? ? ?

1. 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.

See also

Tag del documento e collaboratori

Hanno collaborato alla realizzazione di questa pagina: fscholz, jpmedley, teoli
Ultima modifica di: fscholz,