ontouchstart event
Event indicating that the user has touched the surface of a touch capable device.
Syntax
| HTML Attribute | <element ontouchstart = "handler(event)"> |
|---|---|
| Event Property | object.ontouchstart = handler; |
| addEventListener Method | object.addEventListener("touchstart", handler, useCapture) |
Event information
| Synchronous | No |
|---|---|
| Bubbles | No |
| Cancelable | No |
Event handler parameters
- handler
-
Type: Function
Event handler
Standards information
There are no standards that apply here.
Remarks
The ontouchstart event indicates when the user places a touch point on the touch surface.
The target of this event is an element, such as <canvas>. If the touch point is within a frame, the event is dispatched to an element in the child browsing context of that frame.
If the preventDefault method is called on this event, it prevents any default actions caused by any touch events associated with the same active touch point, including mouse events and scrolling.
See also
Show: