title: Download an image instead of opening it in new tab
body: <p>I am trying to download an image on click and using &quot;download&quot; attribute of HTML5 for this. But it is redirecting the user to a new tab instead of downloading the image.</p>
  <pre><code>&lt;a href=&quot;http://upload.wikimedia.org/wikipedia/commons/3/3f/Stephenson%27s_Rocket_drawing.jpg&quot; download=&quot;myfile.jpg&quot;&gt;Click to Download&lt;/a&gt;
  </code></pre>
  <p>How can I sort out this issue?</p>