i want to use an image as reset button what code i should use in HTML and CSS ?
+2
A:
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).
Pekka
2010-01-03 10:21:07
ok can u tell me how to put java script ?
Muhammad Hussain
2010-01-03 10:27:30
Check out MiGs approach, it works without JS and you just have to style the button. The Javascript I quote above you would just put into the image tag `<a href='...' onclick= .... `
Pekka
2010-01-03 10:45:00