How can I download a file automatically without click on button?
<p>I am trying to write code that opens a clean page that downloads a file when I open it.
My problem is that I didn't find how to do it automatically. I only find this code:</p>

<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;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;a href="content/file.jpg" download &gt; jpg link &lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
</div>
</div>
</p>