: 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.
15530-B Rockfield Blvd. Suite 4
Irvine, CA 92618