Results 1 to 5 of 5
Related
-
Code to allow download of MS word file Forum: HTML Forum
Replies: 3 -
html download code - how to Forum: HTML Forum
Replies: 0 -
Ignore code and link greeting note code Forum: HTML Forum
Replies: 3 -
download link Forum: HTML Forum
Replies: 4 -
Code for a file download Forum: HTML Forum
Replies: 8
-
02-18-2004, 02:06 PM #1
What's the HTML code to download a pdf from a link
Hi all -
I'm new to this and I've been searching the web over and I'm under a deadline. I was wondering if there is just a simple line of code someone could give me that creates the dialog box for downloads (pdf's) when you click on a link.
Thanks so much!
-
02-18-2004, 04:43 PM #2
Nothing simple. You can play around with Content-type headers but at the end of the day they are pretty unreliable.
I have always found a few lines of text instructing the user to right-click the link and choose 'Save Target As...' works fine.If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
10-14-2008, 06:13 PM #3
Re: What's the HTML code to download a pdf from a link
yes thare is! it is.
<a href="file.pdf">file</a>
that sholud work!
-
02-04-2011, 01:46 PM #4
Re: What's the HTML code to download a pdf from a link
I am looking for the same code and the last reply doesn't do it. Nice and slick though.
-
02-07-2011, 03:19 AM #5
Re: What's the HTML code to download a pdf from a link
Try this.
http://webdesign.about.com/od/php/ht/force_download.htm
This will only work with PHP though.
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum