how download html link with js code example
Example 1: html download link
<a href="the/name/of/your/file.x" download>
Example 2: how to download file html button
<a href="file.doc">Download!</a>
<a href="the/name/of/your/file.x" download>
<a href="file.doc">Download!</a>