Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How do you write the code for a html link that allows the user to save to disk?
Im doing a small website showing a few articles. I would like to have a link on each page that allows the user to save the article to their computer, preferable using the pop up dialog box.
Cheers.
2 Answers
- Anonymous10 years agoFavorite Answer
Referring to something like this?
Download Link:
You have to zip the file to trigger the browser's response to Save File. Otherwise, it will call a program to play/open the media/PDF file.
How to Zip or Unzip a file:
How to Make a Zip File or Compressed File: http://www.ehow.com/how_5023369_make-zip-file-comp...
http://www.mantex.co.uk/samples/down-zip.htm
http://office.microsoft.com/en-us/help/HA011276901...
How to create and use compressed (zipped) folders in Windows XP: http://support.microsoft.com/kb/306531
How To Make A ZIP File (Video): http://www.youtube.com/watch?v=ahATyKyfRdk
Making an image a download link:
<p><a href="URL path to zipped file" title="Mouseover Description"><img style="width: XXpx; height: YYpx; border: 0;" src="Path to image" alt="Text Description"></a></p>
Download Text Link only:
<p><a href="URL path to zipped file" title="Mouseover Description">Link Text Description</a></p>
Open Main Page and Affiliate's:
<p><a href="http://mainlinkhere/%22 onclick="window.open('http://affiliatelinkhere','newwin');"/ title="affiliate product's name"><img style="width: XXpx; height: YYpx; border: 0;" src="Path to image" alt="Text Description"></a></p>
You can change the "p" tags to div tags and style as needed.
Forcing File Downloads in PHP: http://elouai.com/force-download.php
Using PHP Headers to Force Download: http://www.ryboe.com/tutorials/php-headers-force-d...
Optional in link: Open new window: onclick="window.open (this.href, ''); return false"
Ron
- Anonymous5 years ago
make a hyperlink to the filename. then tell them to precise click it and click on keep objective AS. In Netscape i think of you are able to hold down the shift key and click the hyperlink to acquire it