JS获取FileUpload控件中的文件路径(IE7,IE8)

document.getElementById("fupLogo").select(); //选中FileUpload控件中的文本
var path = document.selection.createRange().text;  //获取当前文本选中的文本
document.selection.empty();   

posted @ 2011-04-11 11:13  Two Hours  阅读(804)  评论(0编辑  收藏  举报