Skip to content Skip to sidebar Skip to footer

Using Image As Reset Button

i want to use an image as reset button what code i should use in HTML and CSS ?

Solution 1:

Think this should do the trick.

 <button type="reset">
    <img src="#" alt="" />
 </button>

Solution 2:

Good question. Can't be done AFAIK. Images can only serve as submit buttons. You would have to use Javascript to do a onclick="this.form.reset()" on a normal image, or style a normal reset button using a background image (should be possible without problems).


Post a Comment for "Using Image As Reset Button"