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 Microsoft Edge, the experimental "ms" prefix was removed from MSFullscreenError. The recommended usage is as follows:
| IE Version | Recommended Usage |
|---|---|
| Prior to Internet Explorer 11 | not implemented |
| IE11 | MSFullscreenError |
| Microsoft Edge and beyond | fullscreenError |
For improved compatibility with legacy sites, webkitFullscreenError is also supported as an alias of fullscreenError in Microsoft Edge.
See also
Show: