Window: deviceorientationabsolute event
{{APIRef("Device Orientation Events")}}{{securecontext_header}}
The deviceorientationabsolute event is fired when absolute device orientation changes.
This event is not cancelable and does not bubble.
Syntax
Use the event name in {{domxref("EventTarget/addEventListener", "addEventListener()")}}:
addEventListener("deviceorientationabsolute", (event) => { })
Alternatively, assign to the event handler property of the interface:
ondeviceorientationabsolute = (event) => { }
Event type
A {{domxref("DeviceOrientationEvent")}}DeviceOrientationEvent. Inherits from {{domxref("Event")}}Event.
{{InheritanceDiagram("DeviceOrientationEvent")}}
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{DOMxRef("window.devicemotion_event", "devicemotion")}}devicemotion event{{DOMxRef("window.deviceorientation_event", "deviceorientation")}}deviceorientation event- Detecting device orientation