View Full Version : can i use an image as reset button ?
12-04-2002, 11:20 PM
i know i can use an image as a submit button, but can i use one as a reset button ?
12-04-2002, 11:28 PM
i am almost positive the syntax is like this
<img src="rst.jpg" type="submit">
12-05-2002, 12:50 AM
well .. i know the syntax for submit button as an image ... and it actually goes like this ...
<input type='image' name='submit' value="submit" src='image.gif" border="0">
the question is .. if and how can i use a button to clear a form.
12-05-2002, 03:12 PM
<a href="Reset the form" onclick="document.forms["myform"].reset();return false;"><img src="myresetimage" /></a>
12-05-2002, 03:35 PM
Error: Syntax Error
And line 122 is empty ...
any idea why this might be happening ?
12-05-2002, 04:10 PM
I can't tell without seeing the code but as a first guess I'd suspect that you've got a typo. My usual problem is spelling false as flase :)
12-09-2002, 07:14 AM
use single quotes instead:
<a href="Reset the form" onclick="document.forms['myform'].reset();return false;"><img src="myresetimage" /></a>
Since the answer's already posted, I probably didn't need to add that.
12-09-2002, 11:35 AM
<button type="reset"><img src="pic.jpg"></button> :D
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.