# Change the label for \<input type="file"

**URL:** https://forum.kirupa.com/t/change-the-label-for-input-type-file/184601
**Category:** Uncategorized
**Created:** [April 6, 2006, 6:14am UTC](https://forum.kirupa.com/t/change-the-label-for-input-type-file/184601 "2006-04-06T06:14:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sameerzs](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sameerzs/32/810_2.png) [@sameerzs](https://forum.kirupa.com/u/sameerzs)
#### Post date: [April 6, 2006, 6:14am UTC](https://forum.kirupa.com/t/change-the-label-for-input-type-file/184601/1 "2006-04-06T06:14:51Z")

</div>

I wante to change the label for \<input type=“file” from ‘browse…’ to ‘…’ I found a code and it works fine on IE bt it does nt work on Firefox…

Can anybody help ?

this my code:

> \<html\>  
> \<head\>  
> \</head\>  
> \<body\>  
> \<form\>  
> \<input type=file name=newfile style=“display: none;”\>  
> \<input name=file type=text style=“width:60px”\>  
> \<input type=button onClick=“newfile.click();file.value=newfile.value;” value=“…”\>  
> \</form\>  
> \</body\>  
> \</html\>

---

<div class="post-metadata">

### Author: ![Ankou](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ankou/32/1351_2.png) [@Ankou](https://forum.kirupa.com/u/Ankou)
#### Post date: [April 6, 2006, 5:06pm UTC](https://forum.kirupa.com/t/change-the-label-for-input-type-file/184601/2 "2006-04-06T17:06:47Z")

</div>

Check out: [http://www.w3schools.com/htmldom/dom\_obj\_fileupload.asp](http://www.w3schools.com/htmldom/dom_obj_fileupload.asp)

Notice that for type=“file” the click() method isn’t supported for Firefox or Netscape. Which means I don’t think that the newfile.click() will work.

There may be a work around for it, but none that jump out at me right now.
