Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

beginner html code question - "download"

Status
Not open for further replies.

bergis

Technical User
Jun 21, 2001
42
GB
Hi,
this is kind of beginner stuff, but that's me and html anyway: I want to have a link that let's people download a file from my website, but I can't figure out how to create a link that let's people download the file I am linking to (rather than try to open it..). I've tried searching for the correct answer to this question - but no luck (what search term do you enter when you want to find how to code "download file".. :) )

thanks in advance
Kjell
 
You will need to either configure your server to download a particular file type or use a file format the the user's browser does not recognise.

Zips ar a good option as they will generally be downloaded.

All you need to do is make a normal HTML link to the file.

Code:
<a href="myFile.zip">Download this file</a>

"I'm making time
 
I was hoping there was other ways, but no such luck.
Thanks Anyway
Have to go for zips then.

:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top