IE功能大汇聚:
ie按钮<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0>
  </OBJECT> 
  <input onclick=document.all.WebBrowser.ExecWB(1,1) type=button value=打开 name=Button1>
  <input onclick=document.all.WebBrowser.ExecWB(4,1) type=button value=另存为 name=Button2>
  <input onclick=document.all.WebBrowser.ExecWB(10,1) type=button value=属性 name=Button3>
  <input onclick=document.all.WebBrowser.ExecWB(6,1) type=button value=打印 name=Button>
  <input onclick=document.all.WebBrowser.ExecWB(8,1) type=button value=页面设置 name=Button4>
  <br/>
  <input onclick=window.location.reload() type=button value=刷新 name=refresh>
  <input onclick="window.external.ImportExportFavorites(true,'');" type=button value=导入收藏夹 name=Button5>
  <input onclick="window.external.ImportExportFavorites(false,'');" type=button value=导出收藏夹 name=Button32>
  <input onclick="window.external.AddFavorite(location.href, document.title)" type=button value=加入收藏夹 name=Button22>
  <br/>
  <input onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)" type=button value=整理收藏夹 name=Submit2>
  <input onclick='window.location="view-source:" + window.location.href' type=button value=查看源文件 name=Button7>
  <input onclick="window.external.ShowBrowserUI('LanguageDialog', null)" type=button value=语言设置 name=Button6>
  <input onclick=history.go(1) type=submit value=前进 name=Submit>
  <input onclick=history.go(-1) type=submit value=后退 name=Submit2>
要完成此效果把如下代码加入到<body>区域中<input type="button" name="Button" value="点击保存页面" onClick="document.all.WebBrowser.ExecWB(4,1)">
<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>

解决方案 »

  1.   

    document.execCommand("SaveAs");
    这个是整个文件的保存方法。我再去看看可不可能指定某个文件的下载。
      

  2.   

    http://www.tn99.com/myblog/blogview.asp?logID=196&cateID=6
      

  3.   

    webprint是一个基于表格的页面打印解决方案.先将要打印的数据及样式组织到一个HTML的TABLE元素中, 然后将这个TABLE元素传给webprint,实现分页打印预览,出打印对话框打印和直接打印. 详情参见: www.fcsoft.com.cn