我只是想打开个保存的对话框而已。不用接收数据的。

解决方案 »

  1.   

    Only For IE,其他浏览器你需要动态页设置响应头Content-Disposition为attachment;
    document.execCommand('saveas');
      

  2.   

    <input type="button" value="保存,只有IE有效果" onclick="document.execCommand('saveas');"/>你IE版本多少?我这里ie6~8都可以,ie9没有,不知道行不行。注意是只有IE有效果