Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how change text button of an <input type="file">

Status
Not open for further replies.

karfield

Programmer
Feb 6, 2001
7
FR
please help me !

telemaq a french programmer beginner
 
search this forum or the jscript one (i don't remember exactly), the question (can you change the COLOR this button) has been discussed and there were plenty of answers (however i remember it ended up saying you can't) ... maybe it'll help

telemaq kom le fils d'ulysse ??
 
this works for me. I understand it is not useable on all platforms, versions, etc, but on my win2k and winnt boxes with IE5.5, it works fine, but has limitations. It will not allow a user to type a file into the object, it must be browsed for:

<body>
<input type=file onchange=&quot;eros.value=this.value&quot; id=&quot;benluc&quot; style=&quot;display:none&quot;>
<input readonly id=&quot;eros&quot;>
<button onClick=&quot;benluc.click()&quot; style=&quot;background-color:red;border:1px solid #336699;cursor:hand;color:white&quot;>Try This!</button>

<br><br>

<button onclick=&quot;alert(benluc.value)&quot;>Test Input Value</button>
jaredn@eae.net -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top