码迷,mamicode.com
首页 > Web开发 > 详细

通过js获得选择文件的绝对路径

时间:2014-11-22 00:36:38      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:style   blog   io   ar   color   sp   for   文件   on   

       <form name="thisform" method="get"  action="test.jsp" id="thisform" enctype="multipart/form-data">
                <input type="file" name="theFile" onchange="document.getElementById(‘theFilePath‘).value=this.value"/>  
                <input type="hidden" id="theFilePath" name="theFilePath" value="">
                <br>
                <input type="submit" name="submit" value="提交">
       </form>

 

通过js获得选择文件的绝对路径

标签:style   blog   io   ar   color   sp   for   文件   on   

原文地址:http://www.cnblogs.com/hujunzheng/p/4114448.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!