hange the text of browse button in file upload control

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", how
can I do that?
Is it possible ?I found a code that only works in IE but it doesent
work in fireFox, I want to work in both of them.

<html>
<head>
<title>File Upload Example</title>
<script language="JavaScript" type="text/javascript">
function HandleFileButtonClick()
{
document.frmUpload.myFile.click();
document.frmUpload.txtFakeText.value =
document.frmUpload.myFile.value;
}
</script>
</head>
<body>
<form name="frmUpload" encType="multipart/form-data">
<!-- Real Input field, but hidden-->
<input type="file" name="myFile" style="display: none">
<!-- Fake field to fool the user -->
<input type="text" name="txtFakeText" readonly="true">
<!-- Button to invoke the click of the File Input -->
<input type="button" onclick="HandleFileButtonClick();"
value="Upload File" >
</form>
</body>
</html>
-----------------
lale.kat [ Mi, 28 November 2007 07:38 ] [ ID #1881211 ]

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

lale.kat [at] gmail.com wrote:
> 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", how
> can I do that?
> Is it possible ?I found a code that only works in IE but it doesent
> work in fireFox, I want to work in both of them.
>

<snip javascript hack>

Good Firefox! Anyway what happens if the user has JavaScript disabled?
What not use the dependable recommended method?

<label for="MyFile">Upload File: </label>
<input type="file" name="myFile" id="myFile">

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
lws4art [ Mi, 28 November 2007 16:04 ] [ ID #1881252 ]
Miscellaneous » alt.html » hange the text of browse button in file upload control

Vorheriges Thema: web designer needed to design website
Nächstes Thema: Is Dreamweaver hogging up CPU usage?