forcing ie to save the contents of the html instead of displaying it



I have an html file where I display name,address,zip. It is one per line so
it is basicall a list of addresses.

But I would like ie6 to force the download prompt of this long list of names
instead of displaying it to their browsers. This way they can save the list
to a file. I know I can set it up as a txt file and let them download it
that way, but right now this file is generated from a source program which I
have no control over and it creates this .html file.

I looked around google and found a few things to try like:
<meta http-equiv="content-type","application/download">

<meta http-equiv="content-type","application/force-download">

<meta http-equiv="content-type","application/octet-stream">

<meta http-equiv="content-disposition","attachment; filename=list.txt">

but these dont seem to work at all.

Thanks for your help.


.



Relevant Pages

  • IE 6 Caching problem
    ... an updated html file that already ... I cannot get the file to display ... web server and the new information will be displayed. ... new information showing in IE6. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: forcing ie to save the contents of the html instead of displaying it
    ... >I have an html file where I display name,address,zip. ... I know I can set it up as a txt file and let them download it ... to do this if *they* want it to without any special work on your part? ...
    (comp.infosystems.www.authoring.html)
  • Re: ASP.Net Page that has a control to display HTML
    ... It turns out that loading the page into my application was fine. ... >The failure to display the HTML, I believe it has something to do with the data ... Using this yahoo.htm file instead of the simple html file, ... >>correct information ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: CDHtmlDialog fail to load image in Vista
    ... If I take the same HTML file and display it with: ... is coming from the resource, and it is referencing an external .gif file, ... Or else do what I did and load the HTML file and the image ...
    (microsoft.public.vc.mfc)
  • Re: CDHtmlDialog fail to load image in Vista
    ... Thanks for suggestion. ... If I take the same HTML file and display it with: ... is coming from the resource, and it is referencing an external .gif file, ...
    (microsoft.public.vc.mfc)