0
how design a html page. that download files or image in html page
i want make a html page with image and pdf files.when we open the html page and click on any image the image show and automatically download
3 Answers
+ 1
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#Attributes
html5 anchor tag has download attribute, so you can use that easily without much fiddling.
at same time you can also add a onclick listener to the image, and show them.
0
Please don't use the Relevant Tags section to write the question. The tags are indexed and used for search functionality. Irrelevant words presence in the tags will decrease search engine accuracy, leading to irrelevant results in searches.
Hope you understand đ
0
Thanks