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