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>

관련자료

등록된 댓글이 없습니다.
Today's proverb
과거를 아프게 들여다보지 말라. 그것은 다시 오지 않는다. 현재를 슬기롭게 이용하라. 그것은 그대의 것이다. 힘찬 기상으로 두려워말고 나아가 무지개를 맞으라.