: H ello,
: I was just wondering if anyone can help me with downloading a document from an onClick button. Any help would be greatly appreciated, thank you.
:
If the file is anything other than an html/text page (and any Office document in case users with IE 5+), then all you need to do is the following:
<input type="button" name="Download" onClick="location.href='myFile.ext'">
where myFile.ext is the name and extension of the file you wish to allow the user to download.
Good luck.
Happy Computing,
Arash Sayadi
15530-B Rockfield Blvd. Suite 4
Irvine, CA 92618
949-830-1623 x36
949-830-2120 Fax
www.pts1.com
arashs@pts1.com