<html>
<head>
<title>保存对话框</title>
</head>
<body>
<input type="button" value="保存" onclick="document.execCommand('SaveAs')">
</body>
<script language="JavaScript">
function SaveAs(){
var fileSave = new ActiveXObject("MSComDlg.CommonDialog");
fileSave.Filter = "mp3";
fileSave.FilterIndex = 2;
fileSave.MaxFileSize = 128; // 必须设置MaxFileSize. 否则出错
fileSave.ShowSave();
}
</script>
</html>