跳转到主要内容

Window: deviceorientationabsolute event

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.

Specifications

Browser compatibility

See also