Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Form Reset Button
- From: javascript@xxxxxxxxxx (Alan Easton)
- Subject: [Javascript] Form Reset Button
- Date: Thu, 29 Mar 2001 16:12:25 +0100
Hi Guys,
I've managed to get round it, not perfect but it works. Here it is for
anyone interested.
<a href="#none" OnClick="clear2()"><img src="images/clear.gif" border="0"
name="reset" width="49" height="20" alt="Clear Enquiry Form"></a>
And the function clear2() does this:
<script language="Javascript">
function clear2() {
document.equery.txtname.value = "";
document.equery.txtemail.value = "";
document.equery.txtformarea.value = "";
document.equery.txtname.focus();
return true;
}
Thanks for the help anyway guys,
Alan...
-----Original Message-----
From: TomMallard [mailto:mallard@xxxxxxxx]
Sent: Thursday, March 29, 2001 3:51 PM
To: javascript
Subject: Re: [Javascript] Form Reset Button
Have you tried this idea?
<a href="javascript:document.formName.reset();"><img
src="imageName.xxx"></a>
tom mallard
seattle
----- Original Message -----
From: "Alan Easton" <alan.easton@xxxxxxxxx>
To: "'Java-List'" <javascript@xxxxxxxxxx>
Sent: Thursday, March 29, 2001 6:29 AM
Subject: [Javascript] Form Reset Button
> Hello People,
>
> Is it possible to replace the Reset button of a form with an image file,
but
> still make it clickable so it will clear the form. I've tried running an
> OnClick function, but can't get it to work.
>
> Thanks for any guidance,
>
> Alan Easton
> mailto:alan.easton@xxxxxxxxx
>
>
_______________________________________________
Javascript mailing list
Javascript@xxxxxxxxxx
http://www.LaTech.edu/mailman/listinfo/javascript
- Prev by Date: [Javascript] RE: Form Reset Button
- Next by Date: [Javascript] RE: Form Reset Button
- Previous by thread: [Javascript] Form Reset Button
- Next by thread: [Javascript] RE: Form Reset Button
- Index(es):