Back to Content

Navigator: wakeLock property

files/en-us/web/api/navigator/wakelock/index.md

latest704 B
Original Source

{{ApiRef("Screen Wake Lock API")}}{{securecontext_header}}

The wakeLock read-only property of the {{domxref("Navigator")}} interface returns a {{DOMxRef("WakeLock")}} interface that allows a document to acquire a screen wake lock. While a screen wake lock is active, the user agent will try to prevent the device from dimming the screen, turning it off completely, or showing a screensaver.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also