hyperlink to automatically open "save target as"

  • Thread starter Thread starter crawler
  • Start date Start date
C

crawler

I want to set up a link that, rather than fire up a page, instantly opens
"save target as" so that folk have to download the page to their machine.
Some of my users want this rather than PDF files. Any ideas?
 
Unfortunately, you can't do it. There is nothing in HTML that will let you
define this as this function is handled solely by the browser and it's
interpretation of known filetypes. The only thing that you can do to avoid a
browser from opening a file it knows it has a viewer for is to put the file
into a .zip file because the browser won't open .zip files.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
If the browser recognizes it (PDF), it will open it

Put the download in a .ZIP file

--

___________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;

To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
___________________________________________


| I want to set up a link that, rather than fire up a page, instantly opens
| "save target as" so that folk have to download the page to their machine.
| Some of my users want this rather than PDF files. Any ideas?
|
|
 
out of curiosity - do you get a prompt for a password (which if you cancel)
produces the file anyway (in word)
 
crawler said:
out of curiosity - do you get a prompt for a password (which if you cancel)
produces the file anyway (in word)

Anybody that does not have the proper service pack in Office will get that.
 
crawler said:
URL http://www.wyatt-family.com/dance2004/registration.htm

links for word and rtf file should go straight to "save as"

As you probably gather, many of the clients may not be so computer saavy

You should tell us how you did it, though. :)

Jon Spivey has provided code that will force a download from ASP. You can
see an example and get the code here:
http://www.roksteady.net/code/download.asp

I thought at one point it said that it only worked with IE clients, but I
can't find that warning on the page anymore. Jon, am I making that bit up?!
 
Back
Top