EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

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

 

 

Afficher:
© 2014 Microsoft