download the link in javascript code example Example: html link to download file <a href="the/name/of/your/file.x" download>