Java Reference
In-Depth Information
if (theForm.elements[elementcount].type == "text") {
if (theForm.elements[elementCount].value() = "")
alert("Please complete all form elements");
theForm.elements[elementCount].focus;
e.preventDefault();
break;
}
}
}
document.form1.addEventListener("submit", checkForm);
</script>
</body>
</html>
 
Search WWH ::




Custom Search