<input type=button value=保存     onclick="document.execCommand('SaveAs')">
<input type=button value=另存为   onclick="document.execCommand('Saveas',false,'c:\\test.htm')">
这两个方法可以打开文件另存对话框,不过另存的路径是取不到的.