MDN self-hosted library · e01.org

Window: deviceorientationabsolute event

Device Orientation Events

no runnable cells web-api-event upstream source

Device Orientation Events

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 addEventListener():

addEventListener("deviceorientationabsolute", (event) => { })

Alternatively, assign to the event handler property of the interface:

ondeviceorientationabsolute = (event) => { }

Event type

A DeviceOrientationEvent. Inherits from Event.

DeviceOrientationEvent

Specifications

Browser compatibility

See also