DeviceMotionEventAcceleration: z


This read-only property indicates the amount of acceleration that occurred along the Z axis in a DeviceMotionEventAcceleration object.


var zAccel = DeviceMotionEventAcceleration.z;

Return value

A double indicating the amount of acceleration along the Z axis. See Accelerometer values explained for details.


Specification Status Comment
DeviceOrientation Event Specification
The definition of 'DeviceMotionEventAcceleration: z' in that specification.
Editor's Draft

Browser compatibility

No compatibility data found. Please contribute data for "api.DeviceMotionEventAcceleration.z" (depth: 1) to the MDN compatibility data repository.

See also