title: How to force download of "index.html" file via an <a> tag in HTML
body: <p>I have an online configuration editor placed <a href="https://canlogger.csselectronics.com/simple-editor/index.html" rel="nofollow noreferrer">here</a>. The configuration editor is made as a single-page file, i.e. an <code>index.html</code> file, which is hosted via the link.</p>
  
  <p>I would like to be able to link to this configuration editor in a way that triggers a download of the <code>index.html</code> file upon clicking the link - instead of displaying it in the browser. </p>
  
  <p>I was hoping to achieve this via below - but it seems to not work with an <code>index.html</code> file. Any suggestions how to resolve this via HTML or simple Javascript code?</p>
  
  <pre><code>&lt;a href="https://[url]/index.html" download="editor"&gt;download here&lt;/a&gt;
  </code></pre>