if touchend javascript

JavaScript
document.body.ontouchend = function() {
  // Some code
}
Source

Also in JavaScript: