deviceorientation | ondeviceorientation event
Dispatched whenever a change in host device orientation occurs.
![]() |
Syntax
| HTML Attribute | <element ondeviceorientation = "handler(event)"> |
|---|---|
| addEventListener Method | object.addEventListener("deviceorientation", handler, useCapture) |
Event information
| Synchronous | Yes |
|---|---|
| Bubbles | No |
| Cancelable | No |
Event handler parameters
- handler [in]
-
Type: Function
Function to execute when the event is dispatched
Standards information
Remarks
Internet Explorer will dispatch this event whenever it receives device sensor data above the change threshold of 0.01 degrees.
See also
Show:
