DeviceAcceleration.z

Summary

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

Syntax

var zAccel = deviceAcceleration.z;

Return value

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

Specification

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
z
Experimental
Chrome ? Edge Full support 12Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support Ā 
Full support
Compatibility unknown Ā 
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

See also