Element: touchstart event
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Want more browser support for this feature? Tell us why.
The touchstart event is fired when one or more touch points are placed on the touch surface.
Syntax
Use the event name in addEventListener():
js
addEventListener("touchstart", (event) => { })
Alternatively, assign to the event handler property of the interface:
js
ontouchstart = (event) => { }
Event type
A TouchEvent. Inherits from Event.
Examples
Code samples for those events are available on the dedicated page: Touch events.
Specifications
| Specification |
|---|
| Touch Events> # event-touchstart> |
| Touch Events> # dom-globaleventhandlers-ontouchstart> |