Red Alert: Automatic Form Length Checker Script Code
Great utility if you are using feedback forms on your web site! Red Alert changes the background color of textfields to red if the text of your visitor gets too long. IE4 or higher.

Test the Automatic Form Length Checker Script Code
Write a very long text in the textfield form boxes below:
last name
first name

Install the script

Step 1: Open your web page. Paste the following code between the <head> and </head> tags:



Step 2: Open your web page. Create a form with textfields between the <body> and </body> tags.
See blue-red-purple-brown-green sample below:

<form name="address">
<input type="text" name="lastname" maxlength="15" size="8" onFocus="getnames(this.form.name, this.name)">
</form>

code red: give your form a name.
code purple: give each textfield a name.
code brown: set the maximal length of the fexfields (letters).
code green: add this code to each textfield.

Download tons of free copy-and-paste scripts