Export (0) Print
Expand All

fullscreenError | fullscreenError event

Fires when an element can't be displayed in full-screen mode.

Syntax

 

Event handler parameters

This method has no parameters.

Remarks

This example prints a console message stating that an error has occurred.

document.addEventListener("fullscreenError", function () {
    console.error("A fullscreen request error has occurred");
});

As of Project Spartan, the experimental "ms" prefix was removed from MSFullscreenError. The recommended usage is as follows:

IE VersionRecommended Usage
Prior to Internet Explorer 11not implemented
IE11MSFullscreenError
Project Spartan and beyondfullscreenError

 

For improved compatibility with legacy sites, webkitFullscreenError is also supported as an alias of fullscreenError in Project Spartan.

See also

document
fullscreenChange

 

 

Show:
© 2015 Microsoft