Screen.mozEnabled

This Boolean attribute controls the device's screen. Setting it to false will turn off the screen.

Syntax

screenEnabled = window.screen.mozEnabled

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? 12.0 (12.0) ? ? ?
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? 12.0 (12.0) ? ? ?

Availability

In order to use screen.mozEnabled you have to set the preference "dom.screenEnabledProperty.enabled" to true in about:config.

Specification

Not part of specification.

Document Tags and Contributors

Contributors to this page: teoli, jsx, kscarfone, Sheppy, fscholz
Last updated by: teoli,