HTML <input type='file'> File Selection Event

来源:互联网 发布:如何申请淘宝网店步骤 编辑:程序博客网 时间:2024/06/05 19:00

http://stackoverflow.com/questions/3528359/html-input-type-file-file-selection-event


Listen to the change event.

input.onchange = function(e) {   ..};
Get selected file path: 

document.getElementById('my_input').value

0 0
原创粉丝点击