How To Make Link Open Up Image To Auto Download

Discussion in 'HTML & Website Design' started by Swordfish, May 23, 2007.

  1. #1
    I am putting a link on the site that when clicked should automatically prompt to download the image?

    How do I do this. I have it setup now as a normal hyperlink with _blank and it just takes you to the URL of the image and no prompt for download... My users wont realize they need to right click to save as..


    Thanks
     
    Swordfish, May 23, 2007 IP
  2. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #2
    Im not sure, but I think you may need to put it in a zip file for it to work this way.

    I actually searched Google a bit, but was unable to find an exact answer for you.
     
    kentuckyslone, May 23, 2007 IP
  3. Swordfish

    Swordfish Active Member

    Messages:
    988
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #3
    Ive tried some javascript, but cant get it to work correctly... zipping it does the trick.. but I wanted to do the same with just the image..
     
    Swordfish, May 23, 2007 IP
  4. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #4
    Zip files may not be the final answer, or the only way to accomplish this, but they would definitely work.

    Perhaps someone else here knows of a better way, as zip files would create an extra step (unzipping) for your visitors.
     
    kentuckyslone, May 23, 2007 IP