Hi, I use the below js to limit the amount of text allow in a textarea field. My problem is once the limit is reached I cannot delete anything that was type. How do I limit the textarea to a max length and still allow deleting when it reaches the max length?

Code:
function limitText(Object, MaxLen)
	{  return (Object.value.length <= MaxLen);}
In the html
HTML Code:
onkeypress="return limitText(this, 250);"


Thanks.