Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

fullscreenEnabled property

Returns true if an element is in full-screen mode; otherwise returns false.

This property is read-only.

IE11

 

Syntax


fsEnabled = document.msFullscreenEnabled;

Property values

Type: boolean

Flag that indicates whether or not an element is currently in full-screen mode.

ValueCondition
true

An element is in full-screen mode

false

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 VersionRecommended Usage
Prior to Internet Explorer 11not implemented
IE11msFullscreenEnabled
Microsoft Edge and beyondfullscreenEnabled

 

For improved compatibility with legacy sites, webkitFullscreenEnabled is also supported as an alias of fullscreenEnabled in Microsoft Edge.

See also

document

 

 

Show:
© 2017 Microsoft