This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The AmbinentLightSensor() constructor creates a new AmbientLightSensor object.


var ambientLightSensor = new AmbientLightSensor(options)


options Optional
Options are as follows:
  • frequency:  TBD


Specification Status Comment
Ambient Light Sensor
The definition of 'AmbinentLightSensor()' in that specification.
Working Draft Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support54 ? ? ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support5454 ? ? ? ? ?

Document Tags and Contributors

Contributors to this page: connorshea, fscholz, david_ross, jpmedley
Last updated by: connorshea,