---
title: Window.ondeviceorientationabsolute
slug: Web/API/Window/ondeviceorientationabsolute
tags:
  - API
  - Device Orientation
  - Mobile
  - Orientation
  - Property
browser-compat: api.Window.ondeviceorientationabsolute
---
{{ ApiRef() }}{{Non-standard_header}}

## Summary

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

## Syntax

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

## Specifications

This event handler is not currently part of any specification.

## Browser compatibility

{{Compat}}

## See also

- {{ event("deviceorientation") }}
- {{ domxref("DeviceOrientationEvent") }}
- {{domxref("Window.ondeviceorientation","ondeviceorientation")}}
- [Detecting device orientation](/en-US/docs/Detecting_device_orientation "Detecting device orientation")
