<input type=button value=保存     onclick="document.execCommand('SaveAs')">
<input type=button value=另存为   onclick="document.execCommand('Saveas',false,'c:\\test.htm')">

解决方案 »

  1.   

    <!-- IE5.5以上 -->
    <OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT>
    <input type=button value=另存为   onclick="document.all.WebBrowser.ExecWB(4,1)">
      

  2.   

    <!-- IE5.5以上 -->
    <OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT>
    <input type=button value=另存为   onclick="document.all.WebBrowser.ExecWB(4,1)">
      

  3.   

    为什么我用了很多方法,加了保存代码后,打印的时候总会出现http:///这样的空白页面。