Html & Script

글자수 체크하기

컨텐츠 정보

본문

<form name='form'>
<b>글자: </b><input type='text' name='t1' onKeyUp='char_count(this.form)'> 
<br><b>글자수: </b><input type='text' name='t2' value='0' readonly="readonly">
</form>
<script language='javascript'>
function char_count(form)
{
 form.t2.value=form.t1.value.length;
}
</script>

관련자료

댓글 0
등록된 댓글이 없습니다.
Today's proverb
중요한 것은 자신이 지금 바라던 사람이 되어 가고 있다고 믿는 것이다. (데이비드 비스콧)