orientationchange event
Fires when the device is rotated.
Syntax
| HTML Attribute | <element orientationchange = "handler(event)"> |
|---|---|
| Event Property | object.orientationchange = handler; |
| addEventListener Method | object.addEventListener("orientationchange", handler, useCapture) |
Event information
| Synchronous | No |
|---|---|
| Bubbles | No |
| Cancelable | No |
Event handler parameters
- handler
-
Type: Function
Event handler
Standards information
There are no standards that apply here.
Remarks
For interoperability purposes, Internet Explorer for Windows Phone 8.1 Update supports the orientationchange event and the window.orientation property to determine the orientation of the device.
See also
Show: