Window.ondeviceorientationabsolute
Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Summary
An event handler for the 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
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
ondeviceorientationabsolute |
50 |
79 |
No |
No |
37 |
No |
50 |
50 |
No |
37 |
No |
5.0 |
See also
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Window/ondeviceorientationabsolute