[Javascript] Form Reset Button

Mark VanAllen vanallen at earthlink.net
Thu Mar 29 08:53:32 CST 2001


Alan,
This works:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN">

<html>
<head><title>form</TITLE>

<SCRIPT LANGUAGE="JavaScript1.1">

<!-- start script


//
function resetForm(){
document.form.reset();
}
//
//end hide javascript-->

</script>


</head>


<body bgColor="#ffffff" text= "#000000">


<a  href="#"  onClick="resetForm()">

<img src="formimage.gif"></a>

<!------the form/rest of page would follow below---->



Mark



------Original Message------
From: Alan Easton <alan.easton at unn.ac.uk>
To: 'Java-List' <javascript at LaTech.edu>
Sent: March 29, 2001 2:29:50 PM GMT
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 at unn.ac.uk


 





More information about the Javascript mailing list