Page 1 of 1

HTML problem~

Posted: Tue May 25, 2004 9:08 am
by kevin7
is that possible to create a "image" reset button instead of...

Code: Select all

<INPUT type=reset value=reset>
possible? image button look great~

Posted: Tue May 25, 2004 10:25 am
by feyd
kinda the wrong section..

yes, it should be possible. Have your image call the javascript reset function on the form, I think..

Posted: Tue May 25, 2004 12:26 pm
by evilMind

Code: Select all

<input type="image" src="path/to/image.jpg" onclick="this.form.reset;" />

Posted: Tue May 25, 2004 7:59 pm
by kevin7
hm... it dun work... when i click it... it submit the form instead of reset the form... :wink:

Posted: Tue May 25, 2004 8:01 pm
by d3ad1ysp0rk

Code: Select all

<a href="" onclick="this.form.reset;"><img src="path/to/image.jpg"></a>

Posted: Tue May 25, 2004 8:06 pm
by kevin7
u did gave me some idea... i've solve the problem... thx dude..

Code: Select all

<a href="javascript:frm.reset()">
<img src="reset.gif" border=0 alt="Reset"></a>