Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

SynchronousNo
BubblesNo
CancelableNo

 

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

Windows
Document
Element

 

 

Show:
© 2015 Microsoft