title: Is it possible to use click function on SVG tags? I tried element.click() on a <polygon>. Trying to simulate the click using javascript. Doesn't work
body: <p>//Trying to retrieve the HTML element  from the below HTML and attempting to click on it using the Javascript code below</p>
  
  <pre><code>    &lt;html&gt;
          &lt;svg width="300" height="200"&gt;
          &lt;polygon points="100,10 40,198 190,78 10,78 160,198"
    style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;" /&gt;
          &lt;/svg&gt;
      &lt;/html&gt;
  
      &lt;script&gt;
          var polygons = document.getElementsByTagName('polygon');
          if(polygons.length&gt;0)
          {
              //This statement doesn't work. Trying to simulate the click on the polygon element. The click function doesn't click it
              polygons[0].click();
          }
      &lt;/script&gt;
  </code></pre>