Mozilla's getting a new look. What do you think? https://mzl.la/brandsurvey

DeviceAcceleration Redirect 1

« DOM Reference

Draft
This page is not complete.

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.

A DeviceAcceleration object provides information about the amount of acceleration the device is experiencing along all three axes.

Attributes

DeviceAcceleration.x Read only
The amount of acceleration along the X axis. Read only.
DeviceAcceleration.y Read only
The amount of acceleration along the Y axis. Read only.
DeviceAcceleration.z Read only
The amount of acceleration along the Z axis. Read only.

Example

<coming soon>

See also

Specification

Document Tags and Contributors

 Last updated by: Sheppy,