Summary
An event handler for the deviceorientation
event, which contains
information about a relative device orientation change.
Syntax
window.ondeviceorientation = function(event) { ... };
window.addEventListener('deviceorientation', function(event) { ... });
Specifications
Specification | Status | Comment |
---|---|---|
DeviceOrientation Event Specification | Editor's Draft | Initial specification. |
Browser compatibility
BCD tables only load in the browser