I want a textarea field and a counter that lets the user know how many characters he has typed in. I tried something like

<Script Language="JavaScript">
function adding()
{
texto = new String()
texto = document.Rform.Rtext.value

document.Rform.displayChars.value = texto.lenght
}
</Script>
</head>

<body>
<form name="Rform">
<textarea name="Rtext" cols=10 rows=20 onChange="adding()"></textarea>

<BR><BR>
<input type="text" size=5 name="displayChars">


But it doesnt work. Any ideas people?