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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

download file

Status
Not open for further replies.

beco73

Programmer
May 8, 2005
157
CA
Hi,

On my page I want to have a link where if some clicks they can download file on their machine, how can I do that?

Thanks
 
Surely you must not be stating correctly what you want. It is the nature of the web that every link will get downloaded. If it is of a type that browser recognizes and knows what to do with it (text/html), it will open in browser. If not, you will be presented with a download file dialog. So, to answer your question:
Code:
<a href="somefile.zip">Download file</a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top