
20/12/2004, 13:35
|
 | | | Fecha de Ingreso: septiembre-2002 Ubicación: Buenos Aires - Argentina
Mensajes: 220
Antigüedad: 22 años, 6 meses Puntos: 0 | |
en eso no tengo problema uso este que te dice cuantos caracteres quedan
<script>
var MAX=160;
var count;
function counter()
{
var str = new String(document.frm.texto.value);
count = MAX - str.length;
document.all.divCount.innerHTML=count;
}
</script>
<form name="frm" method="POST" action="org_calif.getCalificacion">
<table width="100%">
<tr>
<td><textarea name="texto" cols="50" rows="4" onKeyPress="counter()"
onKeyUp="counter()"></textarea> <br> Máximo <span id=divCount style="position:relative" class="atip">160</span> caracteres </td> </tr> </table> </form>
lo que yo quiero hacer es que cuando llegue al caracter 300 aparezca un mensaje de error, es posible esto?
__________________ <% Viru %> |