Download a file, not show it please !

I have to create a simple HTML page where I must give the possibility to download a (not-compressed) Word Document, there is only one page in this Word document and must stay in Word format.

The usual code is:
<A HRef="myfile.doc">Click here</a> to download this file.

But the problem is that the browser shows the file in a browser window.
I want a normal download process such as the document was named

Is there a normal way, or must I compress this file (which is already small enough)?

Is it possible with a special value in the TARGET parameter?

Thanks for any help,

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

As long as the file has an extension that the browser recognizes, it will display it if the client machine is set that way.  The easiest way would be to put it in a zip file; not to compress it but to make it a file type that the browser won't try and display. Then after unzipping it will be in Word format.  Another option is to change the extension and give the user instructions on changing it back.
You will either have to change the file name extension (by zipping it or just renaming it) or else you could give instructions to right click on the hyperlink that points to the file and select the "Save target as..." option.

This will allow you to download the file without it being opened within the browser.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Use <a href="file://"> instead of <a href="">. This will open up a file/save as dialog box on the user's computer.
NixoAuthor Commented:
The file is always shown in my browser.
But OK, if it's in the browser's config, I'm going to zip this file.

Thanks for these help
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.