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

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -