View Full Version : Downloading a file from a web page

02-19-2004, 11:11 PM
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.

<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

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