Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Image download link without zip using javascript

    Hi,

    i want to bring image download link to download a single image using like

    <a href="./images/sam.png">Download</a>

    when i click the download link it need to download plz help how can i download
    can finished

    Thanking you

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,078
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    The simplest way to emulate an HTML download tag is to simply tell people to right-click on the link to download the file. Something like this:

    (Right click or option-click the link and choose "Save As..." to download this file.)

    See also: http://webdesign.about.com/od/php/ht/force_download.htm


    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
    Last edited by Philip M; 12-09-2009 at 08:41 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •