function textCounter(field, countfield, maxlimit) {
if (field.value.length >= maxlimit) {
alert("Over your writting.");
if (field.value.length > maxlimit ) {
field.value = field.value.substring(0, maxlimit-1)
}
} else {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
else
countfield.value = maxlimit - field.value.length;
}
}
Sunday, 1 July 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment