<input type=button value=另存为htm onclick="document.execCommand('saveas','true','ssm1226.htm')"></p>
<p align="center"> 
<input type=button value=另存为txt onclick="document.execCommand('saveas','true','ssm1226.txt')"></p>

解决方案 »

  1.   

    谢谢大哥,但不是这个“另存为”,而是存链接文件的那个“目标另存为”,目的是想直接用左键在一个link上调用它,然后下载保存link的文件。
      

  2.   

    我这样:
    response.ContentType="application/unknown"
    然后:
    response.Redirect("http://aaa.com/file/ok.doc")
    结果:
    IE还是调了Word在浏览器中打开了ok.doc,想想也应该这样,可怎么做不让IE去判断链接文件的类型呢,总不能让我去修改客户端的注册表吧。
      

  3.   

    我一哥们说他在php里这样做可以的。