I need help with HTML version 5. The code is written in Apache NetBeans, but something is incorrect in the download section. The Browser (Firefox) does not open the window with the download option, just opens in the new tab.
Here is the code with a
atribute.
<a href="documents/HTML-Links-Frontend.pdf" download="HTML">DOWNLOAD DOCUMENTS</a>
CodePudding user response:
The download attribute is boolean, changing the html like this should work:
<a href="documents/HTML-Links-Frontend.pdf" download>DOWNLOAD DOCUMENTS</a>
CodePudding user response:
You can use the download attribute together with the about attribute = "_blank"
<a href="filename.pdf" download="name of the downloaded file" about="_blank">Download the pdf</a>
Be careful because download is not supported by IE caniuse.com/#feat=download