Input type button with image
<p>I want an event to be triggered when the image is clicked, but I cannot figure out how to make that happen. Is it possible for an event to be triggered when an image is clicked? </p>

<pre><code>&lt;form&gt;
  &lt;input type="button" name="button" value="Download" onclick="passWord()" class="button"/&gt;
&lt;/form&gt;
</code></pre>

<p>jsfiddle: <a href="https://jsfiddle.net/29mf5wf9/" rel="nofollow">https://jsfiddle.net/29mf5wf9/</a></p>