<script language="Javascript"> <!-- function showlen(obj) { document.getElementById("contentlen").value=obj.value.length; } //--> </script> <p><textarea name="zhaiyao" rows=5 cols=50 onkeydown="showlen(this)" onkeyup="showlen(this)"></textarea></p> <p>当前字符数<input type=text name=contentlen value=0 size=2 style="border-width:0;background:transparent;">个</p>