Document: fullscreenerror event

You’re reading the English version of this content since no translation exists yet for this locale. Help us translate this article!

The fullscreenerror event is fired when the browser cannot switch to full-screen mode.

Bubbles Yes
Cancelable No
Interface Event
Event handler property onfullscreenerror

As with the fullscreenchange event, two fullscreenerror events are fired; the first is sent to the Element which failed to change modes, and the second is sent to the Document which owns that element.

For some reasons that switching into full-screen mode might fail, see the guide to the Fullscreen API.

Examples

const requestor = document.querySelector('div');

document.addEventListener('fullscreenerror', (event) => {
  console.error('an error occurred changing into fullscreen');
  console.log(event);
});

requestor.requestFullscreen();

Specifications

Specification Status
Fullscreen API Living Standard

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
fullscreenerror eventChrome Full support 45Edge Full support 12Firefox Full support 64
Full support 64
No support 47 — 64
Disabled
Disabled From version 47 until version 64 (exclusive): 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.
No support 10 — 64
Alternate Name
Alternate Name Uses the non-standard name: mozfullscreenerror
IE Full support 11
Alternate Name
Full support 11
Alternate Name
Alternate Name Uses the non-standard name: MSFullscreenError
Opera Full support 32Safari ? WebView Android Full support 45Chrome Android Full support 45Firefox Android Full support 64
Full support 64
No support 47 — 64
Disabled
Disabled From version 47 until version 64 (exclusive): 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.
No support 10 — 65
Alternate Name
Alternate Name Uses the non-standard name: mozfullscreenerror
Opera Android Full support 32Safari 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.
Uses a non-standard name.
Uses a non-standard name.

See also