VOOZH about

URL: https://www.geeksforgeeks.org/html/html-dom-touchend-event/

⇱ HTML | DOM touchend Event - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML | DOM touchend Event

Last Updated : 10 Jun, 2022

The touchend event is used to execute a script when a user removes his finger from an element. It will only work on devices with a touch screen.


Supported Tags

  • All HTML element supported by this event.

Syntax:  

object.ontouchend = myScript;


Below program illustrates the touchend event : 
Example-1: Executing a JavaScript when the user releases the touch. 
 

Output:
Before touching the screen: 
 

👁 Image


After touching the screen: 
 

👁 Image


Supported Web Browsers:

  • Google Chrome 22 and above
  • Edge 12 and above
  • Firefox 52 and above


 

Comment
Article Tags: