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

Test the script
Write a very long text in the textfields below:
last name
first name

Install the script

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



Step 2: Open your webpage. 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.