title | short-title | slug | page-type | browser-compat |
---|---|---|---|---|
DeviceOrientationEvent: beta property |
beta |
Web/API/DeviceOrientationEvent/beta |
web-api-instance-property |
api.DeviceOrientationEvent.beta |
{{APIRef("Device Orientation Events")}}{{securecontext_header}}
The beta
read-only property of the {{domxref("DeviceOrientationEvent")}} interface returns the rotation of the device around the X axis; that is, the number of degrees,
ranged between -180 and 180, by which the device is tipped forward or backward.
See Orientation and motion data explained for details.
A number.
{{Specifications}}
{{Compat}}
- {{domxref("Device orientation events/Detecting device orientation", "Detecting device orientation", "", "nocode")}}
- {{domxref("Device orientation events/Orientation and motion data explained", "Orientation and motion data explained", "", "nocode")}}
- {{domxref("Window.deviceorientation_event", "deviceorientation")}} event
- {{domxref("Window.deviceorientationabsolute_event", "deviceorientationabsolute")}} event