Downloads

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

I would like to be able to add links to .pdf, .doc or .jpg
files that must be downloaded in order to view them (or at
least give the user the option of saving the file to their
computer). I know I can force this by adding these file
types to a .zip file, but I would rather have them in
their true form without the .zip extension. How can I do
this?
 
I am not aware of any way to do this, however at one point I was testing
some JavaScript that might do it -

<a href="file.doc"
onClick="javascript:document.execCommand('SaveAs',1,'file.doc');return
true;">Save File</a>

This, of course, doesn't work.. Instead, it copies the text between the
<a></a> tags to a word document, instead of saving the "file.doc" to the
specified location.


Tiffany K. Edmonds
 
Back
Top