replace button with image

liunx

Guest
i have a button<br />
<input type="button" name="delete" value="Delete"><br />
<br />
i want to replace it with an image ... how to do it?<br />
<br />
if i want to have a submit button then i can just change <br />
<input type="submit" name="delete" value="Delete"> <br />
to<br />
<input type="image" scr="../../graphics/delete.gif" name="delete" value="Delete"><br />
<br />
but now my input type is "BUTTON" and not "SUBMIT" .. so anyidea how to change the input type="button" into a image button?<!--content-->First of all, for the "input type", it's a standard, fixed instruction computers can undertand e.g, reset, delete, submit BUT not the word "image".<br />
<br />
And based from the desciption of your problem, you want this button to act as "delete"? Why would anyone want to click on a button which says "image" to delte something.<br />
<br />
I suggest, you create that button you want. <br />
Try here->http://www.aaa-buttons.com/<br />
<br />
Good Luck! ;)<!--content--><button><img alt="delete" src=http://www.webdeveloper.com/forum/archive/index.php/"delete.png"></button><!--content-->Originally posted by oceanmaid <br />
First of all, for the "input type", it's a standard, fixed instruction computers can undertand e.g, reset, delete, submit BUT not the word "image". <br />
That's actually not true (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.4">http://www.w3.org/TR/REC-html40/interac ... tml#h-17.4</a><!-- m -->).<!--content-->
 
Back
Top