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
참된 발견은 새로운 땅을 발견하는 것이 아니고 새로운 눈으로 보는 것이다. (마르셀 푸르트르)