Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

SynchronousNo
BubblesNo
CancelableNo

 

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

window
body
frameSet

 

 

Show:
© 2017 Microsoft