Advanced Search

Results 1 to 2 of 2

Thread: Code for download button

  1. #1
    Join Date
    Oct 2005
    Posts
    63
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default Code for download button

    The following code shoould start a file download but it only goes to my directory

    <form><input type="button" value="start download"
    onclick="location.href='http://www.mydomain/myfolder;"></form>

    Can some one tell what is missing to go directly to the file
    The file can be downloaded by rightclicking "save as " in the directory but that is the step I would like to eliminate.

    Click button to start download

    The folder contains exe and help files...etc

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Can some one tell what is missing to go directly to the file
    The filename.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

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