Answers for "html button download link"

2

javascript download file on click

You can trigger a download with the HTML5 download attribute.

<a href="path_to_file" download="proposed_file_name">Download</a>
Posted by: Guest on October-07-2020
0

how to make a button download a file in html

$("#fileRequest").click(function(){ /* code to download? */ });
Posted by: Guest on November-22-2021

Browse Popular Code Answers by Language