<script language="javascript">
<!--
/* 限制文本框(TextArea)输入字符数 */
function limitLength(obj, maxLength)
{
if (obj.value.length > maxLength)
{
obj.value = obj.value.substring(0, maxLength);
}
}
-->
</script>
<form name='form1'>
<textarea name="words" cols="70" rows="10" onPropertyChange="limitLength(this, 50)"></textarea>
</form>