Limit Characters and Lines | JavaScriptSource

Limit Characters and Lines

Matt Temple Dec 14, 2002
This script limits characters and lines within a textarea. You specify the characters per line, total lines and total characters. The script updates 2 counter fields (remaining characters and remaining lines). Implement an alert message in the function or use the counter fields for form validation. Works in most browsers.

characters left
lines left

The JavaScript Source: Page Details: Limit Characters and Lines

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!


Did you use this script?  Do you like this site?  Please link to us!

Leave a Response