The TouchEvent touches property in HTML DOM is used to return the array of touch object. It returns one for each finger that is currently touching to the surface. The touches property is a read only property and it returns an array of touch objects.
Return Value: It return the array of touch object.
Below program illustrates the TouchEvent touches property in HTML:
Example: This example find the number of fingers touch on the surface.
Before touching the document:
After touching the document:
Supported Browsers: The browser supported by DOM TouchEvent touches Property are listed below:
- Internet Explorer 10.0
- Google Chrome 22.0
- Firefox 52.0