title: IE 10: SCRIPT5: Access is Denied error on anchor click event
body: <p>I'm trying to save a SVG from a canvas as PNG file using javascript.
  The below code seems to work fine on Chrome and Firefox, but in IE 10 i get the below error in my console.</p>
  
  <p>SCRIPT5: Access is denied.</p>
  
  <p>FInd below the code that I've used:</p>
  
  <pre><code>var image = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream");
  
  var a = $('&lt;a&gt;').attr("href", canvas.toDataURL("image/png")).attr("download", title + "png").appendTo($('#VisitsContainer'));
  
  a[0].click();
  a.remove();
  </code></pre>
  
  <p>The console points to the click event that I'm trying to invoke.</p>