Full version: jsB@nk » Form » Validation » No Entry
URL: https://www.javascriptbank.com/no-entry.html
Use JavaScript to ensure that visitors do not leave a form entry blank.
Full version: jsB@nk » Form » Validation » No Entry
URL: https://www.javascriptbank.com/no-entry.html
<SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction noEntry() {mt=document.form.entry.value;if ((mt.length<1)||(mt.substring(0,6)=="******")) {alert("I'm sorry. This entry must be "+"completed before I can submit this form"+" for processing.");document.form.entry.value="******Please Complete This Entry";document.form.entry.focus();return false;}else { return true; }}// End --></SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<form name="form" action="/cgi-bin/your-form-processor.pl" onsubmit="return noEntry()"><input type="text" name="entry" size=40><br><input type="submit" name="button" value="submit"></form><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->