Ver Mensaje Individual
  #6 (permalink)  
Antiguo 16/09/2011, 20:22
dleal100
 
Fecha de Ingreso: septiembre-2011
Mensajes: 158
Antigüedad: 13 años, 1 mes
Puntos: 15
Respuesta: Ejecutar un boton al llegar a una cantidad determinada de caracteres

jajajja me ganaste justamente ahorita ya tenia el codigo LOL

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>titulo</title>
<script type="text/javascript">
function noce(){
var emo= document.getElementById("algo").value;
if(emo.length=="15")
{
///aca escribes tu codigo para que aga los que se te pegue la ganaaaaaaaaaaaaaaaa
document.getElementById("puke").innerHTML="<strong>EL CODIGO YA TIENE 15 DIGITOS LOL</strong>";
}


document.getElementById("caca").innerHTML=emo;

}
</script>
</head>
<body>
<form method="" action="">
escribe algo: <input type="text" id="algo" onkeydown="noce()" />
</form>

<div id="caca"></div>
<div id="puke"></div>



</body>
</html>