»
AnglaisFran�aisVietnamien

Imprimer - Entrée - JavaScriptBank.com

Version compl�te: jsB@nk » Form » Validation » Entrée
URL: https://www.javascriptbank.com/no-entry.html

Entrée © JavaScriptBank.comUtiliser JavaScript de veiller à ce que les visiteurs ne quittent pas un forme l'entrée en blanc.

Version compl�te: jsB@nk » Form » Validation » Entrée
URL: https://www.javascriptbank.com/no-entry.html



JavaScript
<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-->


HTML
<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-->