title: Long Press in JavaScript?
body: <p>Is it possible to implement "long press" in JavaScript (or jQuery)? How?</p>
  
  <p><a href="https://i.stack.imgur.com/7QiwZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7QiwZ.png" alt="alt text"></a><br>
  <sub>(source: <a href="http://androinica.com/wp-content/uploads/2009/11/longpress_options.png" rel="noreferrer">androinica.com</a>)</sub>  </p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;a href="" title=""&gt;Long press&lt;/a&gt;
  </code></pre>
  
  <p><strong>JavaScript</strong></p>
  
  <pre><code>$("a").mouseup(function(){
    // Clear timeout
    return false;
  }).mousedown(function(){
    // Set timeout
    return false; 
  });
  </code></pre>