java ee - How can i keep a file selected from input type="file" -
i have small web application witch contains button witch declared in html <input type="file" name ="b1" value="browse">
use file selected descktop how can keeped name of file , file lot write contains textarea , thanks.
add id
<input>
:
<input type="file" name ="b1" id="b1" value="browse">
in <head>
:
<script> var file_name = document.getelementbyid("b1").value; //file_name file </script>
Comments
Post a Comment