fullscreenEnabled property
Returns true if an element is in full-screen mode; otherwise returns false.
This property is read-only.
![]() |
Syntax
fsEnabled = document.msFullscreenEnabled;
Property values
Type: boolean
Flag that indicates whether or not an element is currently in full-screen mode.
| Value | Condition |
|---|---|
|
An element is in full-screen mode |
|
No element is in full-screen mode |
Remarks
Because this property only returns true when an element is currently in full-screen mode, it shouldn't be used for feature detection.
As of Microsoft Edge, the experimental "ms" prefix was removed from msFullscreenEnabled. The recommended usage is as follows:
| IE Version | Recommended Usage |
|---|---|
| Prior to Internet Explorer 11 | not implemented |
| IE11 | msFullscreenEnabled |
| Microsoft Edge and beyond | fullscreenEnabled |
For improved compatibility with legacy sites, webkitFullscreenEnabled is also supported as an alias of fullscreenEnabled in Microsoft Edge.
See also
Show:
