ie7下javascript中获取input type=file中的内容
来源:互联网 发布:深圳软件外包协会 编辑:程序博客网 时间:2024/06/10 10:09
var file1= document.getElementById("file1").value;
// 判断浏览器类型,防止浏览器将文件路径设为C:/fakepath/
var isIE = (document.all) ? true : false;
var isIE7 = isIE && (navigator.userAgent.indexOf('MSIE 7.0') != -1);
var isIE8 = isIE && (navigator.userAgent.indexOf('MSIE 8.0') != -1);
if(isIE7 || isIE8)
{
var file = document.getElementById("file1");
file.select();
file1= document.selection.createRange().text;
document.selection.empty();
}
- ie7下javascript中获取input type=file中的内容
- JQuery------获取<input type="file">中的文件内容
- html中的input type="file"类型内容清空
- IE11下获取<input type="file">的文件名
- js/jquery 获取本地文件的文件路劲 获取input框中type=‘file’ 中的文件路径
- js/jquery 获取本地文件的文件路劲 获取input框中type=‘file’ 中的文件路径
- 通过javascript获取<input type="file">的客户端真实路径
- AngularJS 双向绑定 <input type='file'>中文件名,文件内容
- 关于jsp中<input type="file">获取路径问文件名,获取完全路径问题
- 关于jsp中<input type="file">获取路径问文件名,获取完全路径问题
- IE7+ 获取input file 全路径
- input type="file"
- input type=file
- JS清空input type=file内容
- jquery如何清空<input type="file"/>的内容
- <input type="file"/>如何获取判断获取文件后缀
- angularJs 取<input type='file'>中文件名 (ng-model获取不了)
- js 获取、清空 input type="file"的值
- vc修改注册表开机自动启动程序
- 使用daemontools监控服务
- 关于RenderTarget的注意事项
- SAP 添加在线Library
- VC得到指定文件的详细信息/属性
- ie7下javascript中获取input type=file中的内容
- 第一次来这里~大家支持下吧~
- 瑞星木马防御专杀QQ,360,百度软件管家(见图为证!)
- 堆和栈的区别
- 关于短延迟 SLEEP USLEEP NANOSLEEP SELECT
- 000-702 最新题库资料【Testinside 最新题库180元起】
- 模拟按键实现
- 树状DP- hdu 1011 Starship Troopers
- vc删除、拷贝、移动文件夹及其文件