title: Can I have an onclick event on a imagemap area element?
body: <p>I would like to put an onclick event on an area element. Here is my setup:</p>
  <pre><code>&lt;img id=&quot;image&quot; src=&quot;wheel.png&quot; width=&quot;2795&quot; height=&quot;2795&quot; usemap=&quot;#Map&quot; &gt;
      &lt;map name=&quot;Map&quot;&gt;
      &lt;area class=&quot;blue&quot; onclick=&quot;myFunction()&quot; shape=&quot;poly&quot; coords=&quot;2318,480,1510,1284&quot; href=&quot;#&quot;&gt;
  &lt;/map&gt;
  </code></pre>
  <p>I have tried 2 different ways to have an onclick event. Firstly i tried this:</p>
  <pre><code>$(&quot;.blue&quot;).click( function(event){
      alert('test');
  });
  </code></pre>
  <p>I have also tried this:</p>
  <pre><code>function myFunction() {
      alert('test');
  }
  </code></pre>
  <p>Neither of the above work. Do area elements support the above, or do they only support having a href?</p>