setting Maxmimu lenght for obout Edit control?
<pre><code> In my web application i am using obout Edit control. I want to restrict the user to type only 400 characters how can i restrict the user.i write javascript like this.
</code></pre>


function textCounter(field,cntfield,maxlimit) 
{
 if (field.value.length > maxlimit) 
   {
  alert("Cannot type more than 450 characters"); 
  field.value = field.value.substring(0, maxlimit);
   }
    else
     {
      cntfield.value = maxlimit - field.value.length;
       }
  } 


<p>// this is text box</p>

<p>
                  </p>

<p>but it is giving error like no onkeydown for editor.</p>
