EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

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

 

 

Mostrar:
© 2014 Microsoft