Kopieren Sie den Code -Code wie folgt:
<!
<html xmlns = "http://www.w3.org/1999/xhtml">
<kopf>
<meta http-äquiv = "content-type" content = "text /html; charset = utf-8" /> />
<title> Nicht -Title -Dokument </title>
</head>
<body>
<textArea id = "text" color = "20" rows = "5" OnKeyUp = "sum ()" onfocus = "focu ()"> </textArea>
<span id = "span"> </span>
</body>
<Script>
Funktion sum () {
var str = document.getElementById ("text");
var control = str. value;
var len = cont.Length;
document.getElementById ("span").
if (len> = 100) {alert ("Sie können nicht mehr schreiben, es hat das Maximum erreicht!");
document.getElementById ("Text").
// Implementieren Sie eine maximale Grenze von 100 Wörtern.
}
}
</script>
</html>