Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
deviceorientation
Collapse the table of content
Expand the table of content

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:
© 2015 Microsoft