A
Anonymous
Guest
does anybody know how to change [BROWSE...] text from a File Class form ?
Code:
<input type="file" name="F1" size="20">
<input type="file" name="F1" size="20">
<html>
<head></head>
<body>
<form name="test_form" method="post" action="test.jsp">
<input type=file name=browse style="display: none;" size="20">
<input type=text name=file size="20">
<input type=button
style="font-style:veranda; font-size:12px; font-weight:bold;text-transform:lowercase;color:white;background-color:#A2C382;height:22px;border-style:ridge;text-align:center;"
onClick="browse.click();file.value=browse.value;"
value="Select a File...">
<br><br>
<input type=submit
value="Submit The Form Now!"
style="font-style:veranda; font-size:12px;">
</form>
</body>
</html>
browse.click();
document.forms['test_form'].elements['browse'].click();
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<form name="test" method="POST" enctype="multipart/form-data" action="--WEBBOT-SELF--">
<p>
<input name="browse" type="file" name="F1" size="20">
</p>
<p>
<input type="button" onclick="document.forms['test'].elements['browse'].click();" value="Click Browse ..." name="B1">
</p>
</form>
</body>
</html>
<html>
<head></head>
<body>
<form name="test_form" method="post" action="test.jsp">
<input type=file name=browse style="display: none;">
<input type=text name=file>
<input type=button
style="font-style:veranda; font-size:12px; font-weight:bold;text-transform:lowercase;color:white;background-color:#A2C382;height:22px;border-style:ridge;text-align:center;"
onClick="browse.click();file.value=browse.value;"
value="Select a File...">
<br><br>
<input type=submit
value="Submit The Form Now!"
style="font-style:veranda; font-size:12px;">
</form>
</body>
</html>