0
How to make a button that directly downloads a pdf CV/Resume using html thank you devs
Download CV- /*Downloading PDF*/
7 Answers
+ 1
If you want to do it without JavaScript. Use a form with a submit button, "action" pointing to the resource and "method" set to get. This will make a get request to fetch the file. Just like pressing a link.
If you want to fetch the file dynamically from inside the website, you will have to you JavaScript.
+ 1
Just stick with the html solution. It will get unnecessarily complicated with JavaScript. This is the standard way anyways.
+ 1
You can Google the JavaScript way if you want.
+ 1
You could also set
target="_blank"
In your form to start the download in a new tab. Instead of leaving your site.
+ 1
Thank you sir appreciate it
0
How to do it with javascript sir
0
You're welcome