Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.17 KB

File metadata and controls

32 lines (22 loc) · 1.17 KB
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.

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