다음과 같이 코드 코드를 복사하십시오.
<!
<html xmlns = "http://www.w3.org/1999/xhtml">
<헤드>
<meta http-equiv = "content-type"content = "text /html; charset = utf-8" /> />
<title> 비 -타이틀 문서 </title>
</head>
<body>
매
<span id = "span"> </span>
</body>
<cript>
함수 합계 () {
var str = document.getElementById ( "text");
var control = str.Value;
var len = cont.length;
getElementById ( "span").
if (len> = 100) {Alert ( "더 이상 쓸 수없고 최대 값에 도달했습니다!");
getElementById ( "텍스트").
// 최대 100 단어를 구현하면 데이터가 작성되지 않습니다.
}
}
</스크립트>
</html>