Element: touchstart event
Touch Events
Touch Events
The touchstart event is fired when one or more touch points are placed on the touch surface.
Syntax
Use the event name in addEventListener():
addEventListener("touchstart", (event) => { })
Alternatively, assign to the event handler property of the interface:
ontouchstart = (event) => { }
Event type
A TouchEvent. Inherits from Event.
TouchEvent
Examples
Code samples for those events are available on the dedicated page: Touch events.