<script>
document.execCommand('saveas');
</script>

解决方案 »

  1.   

    <script>
    document.execCommand('saveas');
    </script>
    没有专门的函数
      

  2.   

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

    大虾,不是保存html文件本身,我的意思是想保存为Web页。
      

  4.   

    另外,我查了一下Javascript宝典,好像execCommand方法里没有'Saveas'的详细说明,不知那里有相关文档呢?