Web Analytics Made Easy -
StatCounter Downloading a file from a web page - CodingForum

Announcement

Collapse
No announcement yet.

Downloading a file from a web page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Downloading a file from a web page

    I have a page (code below) and want to give the users the option to either open a file or down load a file. I know you can put a url on a page and let the user right click and save, and then enter location to save the file.
    But is there any way to do an onclick (or something) to let them save a file.
    I dont have to use radio buttons, this is just the code I was using to allow folks to select and display a file.

    <td>
    <u>To Open File Click Month here</u>
    <input type="radio" name="loc" onClick="NewWin=window.open('Dec_2003.pdf');">December 2003
    <input type="radio" name="loc" onClick="NewWin=window.open('Jan_2004.pdf');">January 2004
    </td>

    <td>
    <u>To DownLoad file Click Month here</u>
    <input type="radio" name="loc" onClick= ???? >December 2003
    <input type="radio" name="loc" onClick= ???? >January 2004
    </td>



    Thanks
    JC
Working...
X