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
전반전이 끝난 상황이라면 절대로 중단하지 말라. 전반전 점수는 큰 의미가 없다. 그 너머를 보라. 승리할 수 있는 길은 끝까지 인내하는 것이다.