New Revised CSS Library Forums Web Tools
FAQs Awards Usage Terms Contact



Submit Once form validation-
Dynamic Drive (
For full source code, usage terms, and 100's more DHTML scripts, visit

function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
//disable em
return false


<form onSubmit="return submitonce(this)" >
<input type="text" value="Name">
<input type="submit" value="Submit"> <input type="reset" value="Reset">