JavaScript and client side scripting.
Moderator: General Moderators
-
kevin7
- Forum Commoner
- Posts: 96
- Joined: Fri May 21, 2004 6:54 am
Post
by kevin7 »
is that possible to create a "image" reset button instead of...
possible? image button look great~
-
feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Post
by feyd »
kinda the wrong section..
yes, it should be possible. Have your image call the javascript reset function on the form, I think..
-
evilMind
- Forum Contributor
- Posts: 145
- Joined: Fri Sep 19, 2003 10:09 am
- Location: Earth
Post
by evilMind »
Code: Select all
<input type="image" src="path/to/image.jpg" onclick="this.form.reset;" />
-
kevin7
- Forum Commoner
- Posts: 96
- Joined: Fri May 21, 2004 6:54 am
Post
by kevin7 »
hm... it dun work... when i click it... it submit the form instead of reset the form...

-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
Post
by d3ad1ysp0rk »
Code: Select all
<a href="" onclick="this.form.reset;"><img src="path/to/image.jpg"></a>
-
kevin7
- Forum Commoner
- Posts: 96
- Joined: Fri May 21, 2004 6:54 am
Post
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>