View Full Version : can i use an image as reset button ?
12-05-2002, 12:20 AM
i know i can use an image as a submit button, but can i use one as a reset button ?
12-05-2002, 12:28 AM
i am almost positive the syntax is like this
<img src="rst.jpg" type="submit">
12-05-2002, 01: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, 04:12 PM
<a href="Reset the form" onclick="document.forms["myform"].reset();return false;"><img src="myresetimage" /></a>
12-05-2002, 04:35 PM
Error: Syntax Error
And line 122 is empty ...
any idea why this might be happening ?
12-05-2002, 05: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, 08: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, 12:35 PM
<button type="reset"><img src="pic.jpg"></button> :D
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.