javascript打开选择对话框/保存对话框
来源:互联网 发布:sai是什么绘图软件 编辑:程序博客网 时间:2024/06/06 11:39
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<script language="javascript">
function ok(){
var s = document.getElementById("file");
s.click();
var str = s.value;
//获取 文件路径 alert(str);
}
function SaveAs(){
var fileSave = new ActiveXObject
("MSComDlg.CommonDialog");
fileSave.Filter = "mp3";
fileSave.FilterIndex = 2; // 必须设置MaxFileSize.
fileSave.MaxFileSize = 128;
fileSave.ShowSave();
}
</script>
<body>
<input type="file" id="file" style=" display:block"/>
<input type="button" value="click" onClick="ok()">
<input type="button" value="保存" onclick="document.execCommand('SaveAs')">
</body>
</html>
- javascript打开选择对话框/保存对话框
- javascript打开选择对话框/保存对话框
- javascript打开选择对话框/保存对话框
- javascript打开选择对话框/保存对话框
- javascript打开选择对话框/保存对话框
- javascript实现打开/保存对话框
- Cocoa 选择保存路径对话框 和 选择打开文件对话框
- 如何打开保存路径选择对话框
- VC打开文件对话框与保存文件路径选择对话框
- 目录选择对话框、文件打开或保存对话框、字体对话框和颜色对话框
- 目录选择对话框、文件打开或保存对话框、字体对话框和颜色对话框
- 打开文件保存对话框
- 文件打开保存对话框
- 打开保存文件对话框
- MFC打开保存对话框
- GUI编程:打开文件对话框、保存文件对话框、颜色选择对话框的使用
- 打开文件夹选择对话框
- 打开路径选择对话框
- jobdu 2 成绩排序
- js在IE和Firefox下不同之处
- 中级9 Be thoughtful
- ASP.NET中使用水晶报表
- SQL Server 智能感知IntelliSense 不起作用
- javascript打开选择对话框/保存对话框
- 纵向三级导航
- 基于openswan klips的IPsec VPN实现分析(十)认证算法维护
- Game Development with JavaScript and the Canvas element
- JavaScript可否多线程? 深入理解JavaScript定时机制
- 2013寒假练习 1018:没有上司的聚会
- iOS触摸简介和简单实现
- 分布式文件系统(MooseFS)
- sunpinyin出词调用顺序