Html5 Href Download Attribute Not Working With .pdf File
I want a .pdf file to download when the user clicks on an image within a table element. This is what I've got:
Solution 1:
i run your code in chrome & fire-fox and looks like its works perfectly.
Code is:
<!DOCTYPE html>
<html>
<body>
<a href="hello.pdf" download>
<img src="Cube.png" width="32" height="32" border="0"/>
</a>
</body>
</html>
Note: The download attribute is not supported in IE, Safari or Opera version 12
(and earlier)
Solution 2:
Alright, turns out there was permissions issues, server-side. I contacted my webhost and they fixed it!
Post a Comment for "Html5 Href Download Attribute Not Working With .pdf File"