/

HTML / CSS / JavaScript Tutorial

JavaScript Properties and Methods for TouchEvent objects

[this page | pdf | back links]

TouchEvent objects within the JavaScript DOM support the following properties:

 

Properties:

 

Property

Description

More

altKey

Returns true if ‘ALT’ key was pressed, otherwise returns false

Here

changedTouches

Returns a TouchList of all the Touch objects representing those points of contact where state has changed between previous touch event and this one

Here

ctrlKey

Returns true if ‘CTRL’ key was pressed, otherwise returns false

Here

metaKey

Returns true if ‘META’ key was pressed, otherwise returns false

Here

shiftKey

Returns true if ‘SHIFT’ key was pressed, otherwise returns false

Here

targetTouches

Returns a TouchList of all the Touch objects that are both currently in contact with touch surface and were also started on same element as the event target

Here

touches

Returns a TouchList of all the Touch objects that are currently in contact with touch surface irrespective of target or changed status

Here

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile