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

解决方案 »

  1.   

    <script  language=javascript>
    document.execCommand('saveas')
    </script>
      

  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.   

    window.document.execCommand("SaveAs");
      

  4.   

    <input type=button value=另存为txt onclick="document.execCommand('saveas','true','*.txt')">