faqts : Computers : Internet : Web : HTML

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

46 of 64 people (72%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

is it possible to use an image in form-input-submit button? ie. value="image.gif"
is it possible to use an image in form-input-submit button? ie. value="image.gif"
i couldn't pass the submit value while using image instead of submit button. is it possible to pass

Sep 7th, 2001 07:18
Ben Gordon, J Wang, jose alex,


Yes it is possible to use an image as a submit button the correct syntax 
would be <input type="image" src="../images/submit.gif" value="Submit" 
name="sender"> you can also make a reset button with an image although 
that requires javascript to work and is a link as opposed to a input but 
it could be done like this <a href="java 
script:document.forms[0].reset()"><img src="reset.gif"></a>
Hope That Helps