devicemotion | ondevicemotion event
Dispatched whenever motion in the host device occurs.
![]() |
Syntax
| HTML Attribute | <element ondevicemotion = "handler(event)"> |
|---|---|
| addEventListener Method | object.addEventListener("devicemotion", handler, useCapture) |
Event information
| Synchronous | Yes |
|---|---|
| Bubbles | No |
| Cancelable | No |
Event handler parameters
- handler [in]
-
Type: Function
Function to execute when the event is dispatched
Standards information
See also
Show:
