title: Cancel key down, press, up event in PHP javascript, C#
body: <p>I want to cancel out key press event when my textarea field gets <strong>n</strong> number of characters from user. At that point I don't want user to enter any more characters. What to do?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I need it to be done in Javascript as well as in PHP.</p>