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 Internet Explorer for Windows 10 Technical Preview, the experimental "ms" prefix was removed from msFullscreenEnabled. The recommended usage is as follows:

IE VersionRecommended Usage
Prior to Internet Explorer 11not implemented
IE11msFullscreenEnabled
Internet Explorer for Windows 10 Technical Preview and beyondfullscreenEnabled

 

For improved compatibility with legacy sites, webkitFullscreenEnabled is also supported as an alias of fullscreenEnabled in Internet Explorer for Windows 10 Technical Preview.

See also

document

 

 

Show:
© 2015 Microsoft