Download button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nomad
    Recognized Expert Contributor
    • Mar 2007
    • 664

    Download button

    Hello Everyone:

    I'm not sure if this is the right area for this topic.
    Anyway I'm looking to see if anyone knows how to make a .js file that will allow someone to click on a download button and they get that file or image to their computer.
    ie to their desktop

    Thanks
    damon
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    that’s simple. use a link (e.g. <a href="/path/to/file" class="button"> file</a>) and style it that it looks like a button.

    Comment

    • nomad
      Recognized Expert Contributor
      • Mar 2007
      • 664

      #3
      Not what I'm looking for Dormilich. It needs to download to their desktop sorry about that one.
      Thanks anyway Dormilich

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        you can’t choose the download location. that’s the responsibility of the user (mostly defaulting to the download folder). besides that, when you click on the link and the file is set for download (e.g. because you set the appropriate headers) the file will happily start downloading.

        Comment

        Working...