VOOZH about

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

⇱ HTML | DOM touchmove Event - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML | DOM touchmove Event

Last Updated : 10 Jun, 2022

The touchmove event is used to execute a script when the user moves the finger across the screen. 
It works only on touch screen devices and triggers once for every movement and continues to trigger until the finger is released.
Supported Tags

  • All HTML elements supported by this event.  

Syntax: 
 

object.ontouchmove = myScript;


Below program illustrates the touchmove event: 
Example: Executing a JavaScript when a user moves the finger over a P element.
 

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: