---
title: ondeviceorientation
framework: webkitjs
role: symbol
role_heading: Instance Property
path: webkitjs/domwindow/1628872-ondeviceorientation
---

# ondeviceorientation

The event listener that is called while the device orientation changes around the x, y, and z axes.

## Declaration

```data
attribute EventHandler ondeviceorientation;
```

## Discussion

Discussion Read DeviceOrientationEvent for details.

## See Also

### Getting Orientation and Motion Events

- [orientation](webkitjs/domwindow/1632568-orientation.md)
- [ondevicemotion](webkitjs/domwindow/1632048-ondevicemotion.md)
