files/en-us/web/api/window/deviceorientationabsolute_event/index.md
{{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.
Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property.
addEventListener("deviceorientationabsolute", (event) => { })
ondeviceorientationabsolute = (event) => { }
A {{domxref("DeviceOrientationEvent")}}. Inherits from {{domxref("Event")}}.
{{InheritanceDiagram("DeviceOrientationEvent")}}
DeviceOrientationEvent.webkitCompassHeading {{Non-standard_Inline}} {{ReadOnlyInline}}
DeviceOrientationEvent.webkitCompassAccuracy {{Non-standard_Inline}} {{ReadOnlyInline}}
{{Specifications}}
{{Compat}}