1.ie6: var file_url = document.getElementById("file").value; 2.ie7/ie8: var file = document.getElementById("file"); file.select(); var file_url = document.selection.createRange().text; 3.firefox3.0 var file_url = document.getElementById("file").files[0].getAsDataURL();