Not TestedTesting not done, may not work properly
Device & Sensors

Accelerometer Sensor

Generic Sensor API for 3-axis acceleration tracking.

Checking support...
Advertisement

Interactive Input Workspace

Ready for input

Web API Execution Output

Result output will be displayed here after processing...

Native JavaScript Code Example (Zero Libraries)

if ('Accelerometer' in window) {
  const acl = new Accelerometer({ frequency: 60 });
  acl.start();
}

About the Accelerometer Sensor Web API

Accelerometer sensor interface provides acceleration measurements along X, Y, Z axes.

Specification:W3C & WHATWG Web API Standard
Sponsored Content