permaculture playing cards
The moose likes HTML, CSS and JavaScript and the fly likes how the browse button is coming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how the browse button is coming " Watch "how the browse button is coming " New topic

how the browse button is coming

nikhil govind
Ranch Hand

Joined: Mar 08, 2011
Posts: 31
i am writing a code as follows in jsp,,the html part:
i have to upload a file and save it somewhere so :

<form ENCTYPE="multipart/form-data" ACTION="fileupload.jsp" METHOD=POST>
<table border="2" >

<td colspan="2"><p align="center"><B>PROGRAM FOR UPLOADING THE FILE</B>
<tr><td><b>Choose the file To Upload:</b></td>
<td><INPUT NAME="F1" TYPE="file"></td></tr><tr><td colspan="2">
<p align="right"><INPUT TYPE="submit" VALUE="Send File" ></p></td></tr>

it gives a browse button can i change its name it by default ...if yes how its working?
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You can not change that.

Daniel Reznick
Ranch Hand

Joined: Oct 23, 2008
Posts: 50


Actually the thing you need to do is: You need to hide the default button, and instead of it put you own custom button that will call the action of the original one

I did it once...

You can either do it with css or you can do it with jQuery

here couple useful google search strings :

1) INPUT TYPE="file" how to make a custom button
2) how to customise the input file button

and here couple of website i found with it :

Hope it helps you,


nikhil govind
Ranch Hand

Joined: Mar 08, 2011
Posts: 31
thanks Eric and Daniel
I agree. Here's the link:
subject: how the browse button is coming
It's not a secret anymore!