javascript - Making my Jpeg Downloadable -
this question has answer here:
i trying file, in image folder, become downloadable. have linked in site as
<a href="images/resume.jpg" download> resume</a>
i have edited this, still not working in internet explorer, therefore can have option available internet explorer well.
it's simple jpeg. when clicked, opens page , picture appears. want downloaded moment it's clicked. not open in page right clicked saved. can java script download attribute isn't supported in internet explorer. current knowledge - hmtl5/css/ javascript.
it should this:
<a href="images/resume.jpg" download="resume.doc">resume</a>
you missing location. unless name of file trying download "resume" , in same location page being displayed.
fyi, html5 feature , not supported ie , safari.
source: w3schools
Comments
Post a Comment