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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top