Force <a download /> to download image instead of opening url link to image : <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a download='file' href="https://tinyjpg.com/images/social/website.jpg"&gt;
  Download
&lt;/a&gt;</code></pre>
</div>
</div>
</p>

<p>Is there a way to force the download of a file instead of opening the file in a new window? Right now if the file is a URL, like the example below it won't be downloaded and will open in a new window.</p>

<p>Thank you 🙌</p>
