Value:

If you're like me, you've pressed the submit on a form and then realized a minute later that the computer hadn't picked it up. Or you didn't think you fully pressed the submit button to e-mail someone, only to figure out that your recipient received two or three multiple requests from you. Well, no more of those worries with the Submit Disabler. Now your visitors can be sure they pressed the submit button and you won't be bothered with multiple forms. I highly recommend this script and I personally will be sure to use it whenever I put a new form on my page. The only down side it that it only works with MSIE4.0+ and NS6.0, however nothing adverse will happen with NS4.6 and the others. Color coding is provided, but the script is easy enough to customize without it.
The source..


<script language="Javascript">
<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

function SubDisable(dform) {
  if (document.getElementById) {
   for (var sch = 0; sch < dform.length; sch++) {
    if (dform.elements[sch].type.toLowerCase() == "submit") dform.elements[sch].disabled = true;
   }
  }
return true;
}

//-->
</script>

<form onSubmit="SubDisable(this);">
Value: <input type="text" name="dvalue">
<input type="submit" value="Test This">
</form>

Color coding..


Just put the "onSubmit" field (everyhing with this color) inside all your FORM tags exactly as written and you should be good to go.

Nic's JavaScript Page