Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

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

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.

文档标签和贡献者

 此页面的贡献者: teoli, jsx, kscarfone, Sheppy, fscholz
 最后编辑者: teoli,