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