Export (0) Print
Expand All

deviceorientation | ondeviceorientation event

Dispatched whenever a change in host device orientation occurs.

IE11

 

Syntax

HTML Attribute <element ondeviceorientation = "handler(event)">
addEventListener Method object.addEventListener("deviceorientation", handler, useCapture)

 

Event information

SynchronousYes
BubblesNo
CancelableNo

 

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

Window

 

 

Show:
© 2014 Microsoft