button style for user file input

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

button style for user file input

Post by Bill H »

This line displays an input box with the "browse" button beside it:

Code: Select all

<input name="imgfile" type="file">
Which is well and good, but my site uses images for buttons, like:

Code: Select all

<input type="image" src="images/send.gif" name="Send">
Is there any fairly simple way to use an image for the "browse" button
and get the functionality of the "type=file" as the 1st example?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Post Reply