How to create "Download" command

G

Galsaba

I uploaded a doc file to my host server. Now in my HTML website I want to
create a hyperlink, so when the user click on it, the doc file will be
downloaded.
How to do it?
Joe
 
M

Michael Wilcox

Galsaba said:
I uploaded a doc file to my host server. Now in my HTML website I
want to create a hyperlink, so when the user click on it, the doc
file will be downloaded.
How to do it?

This is a choice made by the user or the user agent and isn't something you
can (or should) control. However, a file in .zip, .sit, .tar, or .hqx format
is often downloaded and not opened by user agents.
 
A

A Hess

Galsaba said:
I uploaded a doc file to my host server. Now in my HTML website I want to
create a hyperlink, so when the user click on it, the doc file will be
downloaded.
How to do it?
Joe

It's the same as a regular link:
<a href="http://www.blah.com/whatever.doc">My Document</a>

But depending on how their browser is set up, it may display in the
browser, or prompt for download.
 
B

brucie

I uploaded a doc file to my host server. Now in my HTML website I want to
create a hyperlink,

so when the user click on it, the doc file will be downloaded.

what happens when a link is clicked is determined by the visitors
settings. if you want a download dialog to appear change *your*
settings, don't worry what other peoples settings are.
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top