Re: Using an image as a reset button

by "Alejandro Wainshtok" <alejandro(at)bicsa.colombus.cu>

 Date:  Tue, 22 Feb 2000 10:50:44 -0500
 To:  "Mike Kear" <choicemag(at)hotmail.com>,
<hwg-techniques(at)hwg.org>
  todo: View Thread, Original
I tried to do what you want your way, but it seems that when input tag type
attribute sets to "image" it behaves as a sumbit button. The logical
behaviour of an image button should be to act as a simple button, not as a
submit button. I really don't know the reasons why. I attached a sample .htm
page that shows a different way to do the same. I used images with the id
property set and then I control the onclick events for both the images,
submit and reset. It  works fine, maybe it's not the best way, but is a way.

HTH ,
Alejandro Wainshtok
Network Administrator
Banco Internacional de Comercio S.A.
Havana, Cuba
-----Original Message-----
From: Mike Kear <choicemag(at)hotmail.com>
To: hwg-techniques(at)hwg.org <hwg-techniques(at)hwg.org>
Date: Tuesday, February 22, 2000 9:15 AM
Subject: Using an image as a reset button


>Ok, I admit it ... it's hard for me to do but I admit it.  I'm stumped.
>Just don't tell my wife or I'll never hear the end of it!
>
>I'm trying to replace the boring "submit" and "reset" buttons on a form
with
>GIF images.  I've done the submit ok, but the reset one won't do anything
>other than act as a submit button.
>
>It **IS** possible to have an image as a reset button isn't it?
>
>Here's the code I'm using:
>
>Plain ordinary button:
>
><input name="Reset" value="Reset my choices" type="reset">
>
>Image reset button:
>
><input name="Reset" type="image" border="0" src="images/reset.gif"
>width="176" height="26" alt="Reset">
>
>
>What have I done wrong?
>
>Cheers,
>Mike Kear
>AFP Web Development
>Windsor, NSW, Australia
>http://www.afp.zip.com.au
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA