Tim Down , , . , , - ( ) , , javascript . (, )
<head>
<script>
function checkCharCount(){
textfield = document.getElementById('remark');
textfield.value = textfield.value.substr(0, 300);
document.getElementById("charCounter").innerHTML = 300 - textfield.value.length;
}
</script>
</head>
<body>
<textarea id="remark" class="input" name="remark" rows="5" cols="45" wrap="virtual" onkeyup="checkCharCount();" onpaste="setTimeout(checkCharCount, 20);"></textarea>
<div><span id="charCounter">300</span> characters left.</div>
</body>
. http://www.quirksmode.org/dom/events/cutcopypaste.html
-, ,