Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.