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

18th Sep 2019, 6:40 AM
Nomam khan
Nomam khan - avatar
3 ответов
+ 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.
18th Sep 2019, 7:09 AM
Taste
Taste - avatar
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 👍
18th Sep 2019, 7:03 AM
Ipang
0
Thanks
18th Sep 2019, 10:37 AM
Nomam khan
Nomam khan - avatar