In a table I create links for user to download Word documents.
Here is my code:
<A href="someWordDoc.doc">Doc description</A>
I only want to user right click to save this document instead click to open the file. Is there any good way to do that?
Thanks
Luckily, there isn't. What happens if I want to open the file in my browser? Shouldn't it be my choice what happens, after all it's my browser not yours?
The closest you will get to what you want is to stream the file from your server-side code to the client and set a Content Type for it that will ask the user whether they want to open/save the file when they click it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.