touchend Event in JavaScript
touchend Event in JavaScript
The touchend event is used to trigger when user removes the finger from an element. It will only work with devices that have a touch screen.
Its relative events are:-
- touchstart i.e, it occurs when the user touches an element
- touchcancel i.e, it occurs when the touch is interrupted
- touchmove i.e, it occurs when the user moves the finger across the screen
Syntax:-
Its syntax is:- < element ontouchend="my_script" > OR object.ontouchend= function(){my_script} OR object.addEventListener("touchend", my_script)