--- title: Window.ondeviceorientationabsolute slug: Web/API/Window/ondeviceorientationabsolute translation_of: Web/API/Window/ondeviceorientationabsolute ---

{{ ApiRef() }}{{Non-standard_header}}

摘要

An event handler for the {{ event("deviceorientationabsolute") }} event containing information about an absolute device orientation change.

Syntax

window.ondeviceorientationabsolute = function(event) { ... };
window.addEventListener('deviceorientationabsolute', function(event) { ... });

Specifications

This event handler is not currently part of any specification.

Browser compatibility

{{Compat("api.Window.ondeviceorientationabsolute")}}

See also