HighDots Forums  

Re: change the text of browse button in file upload control

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Re: change the text of browse button in file upload control in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: change the text of browse button in file upload control - 11-28-2007 , 05:45 AM






Scripsit lale.kat (AT) gmail (DOT) com:

Quote:
Hi.I want to change the text of browse button in file upload control
in firfox,for example insted of being "browse" be "upload file",
Stop wanting that. File input is more or less mysterious to most people
as it is, so there is no way to take extra effort to obfuscate it more.

Quote:
Is it possible ?
Not in HTML.

Quote:
I found a code that only works in IE but it doesent
work in fireFox, I want to work in both of them.
It plays with JavaScript, so it's off-topic here. And as said, it's a
bad idea anyway.

Specifically, "upload file" would be grossly misleading, since clicking
on the button does not upload anything. It's for _choosing_ a file for
upload. Much as the word "Browse" (or equivalent text in another
language) says.

Quote:
input type="file" name="myFile" style="display: none"
And here you make the entire file input non-functional to all users who
have a CSS-enabled, JavaScript-disabled browser. So the approach was
wrong. If it really made sense to try to change the button text, you
would try to do that directly using scripting or you would use a script
to generate the scripting-based widgets for it, using <noscript><input
type="file" name="myFile"></noscript> as a fallback.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.