Back to Content

DeviceOrientationEvent: beta property

files/en-us/web/api/deviceorientationevent/beta/index.md

latest993 B
Original Source

{{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.

Value

A number.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{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