Script Categories













Forms >>> No Entry.

Use Javascript to ensure that visitors do not leave a form entry blank.

Change the form's ACTION in this script to point to your Form Mail CGI-Script.

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function 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();
document.form.entry.select();
return false;
}
else { return true; }
}
// End -->
</SCRIPT>
Change the form's ACTION in this script to point to your Form Mail CGI-Script.
<BR>
<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>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

online casino


©