Hi I have a large pdf file that if I create an anchor link to, the
browser will try to open the file, which takes quite a long time. Is
there a way to force the browser to download the file rather than try
to open it?
Thankss
Posted by Darin McGrew on February 3, 2006, 3:29 pm
Please log in for more thread options
> Hi I have a large pdf file that if I create an anchor link to, the
> browser will try to open the file, which takes quite a long time. Is
> there a way to force the browser to download the file rather than try
> to open it?
See http://www.htmlhelp.com/faq/html/links.html#force-download --
Darin McGrew, mcgrew@stanfordalumni.org, http://www.rahul.net/mcgrew/ Web Design Group, darin@htmlhelp.com, http://www.HTMLHelp.com/
"Warning: Dates in the calendar are closer than they appear."
Posted by ron1972 on February 3, 2006, 3:36 pm
Please log in for more thread options
thanks~
Posted by Harlan Messinger on February 3, 2006, 3:45 pm
Please log in for more thread options
ron1972 wrote:
> Hi I have a large pdf file that if I create an anchor link to, the
> browser will try to open the file, which takes quite a long time. Is
> there a way to force the browser to download the file rather than try
> to open it?
If the user's browser is configured to open the file by default, there's
nothing you can do about it. That's as it should be. After all, if it's
too large to open, why should the decision be up to you that it *isn't*
too large for the user to want to download at all?
The courteous approach is to annotate the link with the size of the
document. If you want to be extra helpful, you can suggest that the file
is really large and the user may want to download it instead--for
example, by choosing "Download this link" or a similar command from the
context menu available on some installations (a.k.a. "right-clicking",
but that isn't available to all web users).
Posted by Lars Eighner on February 3, 2006, 8:44 pm
Please log in for more thread options
In our last episode,
the lovely and talented ron1972
broadcast on comp.infosystems.www.authoring.html:
> Hi I have a large pdf file that if I create an anchor link to, the
> browser will try to open the file, which takes quite a long time. Is
> there a way to force the browser to download the file rather than try
> to open it?
If there is, it in your browser, not html. Consult your
browser's documentation or a newsqroup about the browser.
--
Lars Eighner usenet@larseighner.com http://www.larseighner.com/ War On Terrorism: Joe McCarthy Brigade
"The decadent left in its enclaves on the coasts is not dead -- and may well
mount a fifth column." Andrew Sullivan, _The New Republic_