title: How to implement an onmousedown and onmouseup on an iPhone touch screen
body: <p>I've very new to HTML/JavaScript but am learning…</p>
  <p>I want to make a button on an iPhone that runs a JavaScript command when it is pressed and another when it is released.  I tried to do this using <code>onmousedown</code> and <code>onmouseup</code> properties, but this does not work the same on iPhone.</p>
  <pre class="lang-html prettyprint-override"><code>&lt;input type=&quot;image&quot; onmousedown=&quot;command_press()&quot; onmouseup=&quot;command_release()&quot; src=&quot;images/UP-Dark.png&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;
  </code></pre>
  <p>Could someone please tell me how to do the same thing on the iPhone?</p>