1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
<html>
<head>
<noscript>
<meta http-equiv="refresh" content="0;URL=pageerreur.htm">
</noscript>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Count lines</title>
<script type="text/javascript">
function limit(o) {
while (o.scrollHeight > o.offsetHeight) {
o.value = o.value.substring(0, o.value.length-2)
}
}
</script>
</head>
<body>
<form action="" method="post" name="form">
<textarea name="field" wrap="hard" style="font-family:courier;font-size:12px;overflow:hidden" cols="64" rows="29" onchange="limit(this);" onkeyup="limit(this);"></textarea>
<input type="submit" value="print" />
</form>
<div style="font-family:courier;font-size:12px;">
</div>
</body>
</html> |
Partager