Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/08/2005, 06:49
jhonyweb
 
Fecha de Ingreso: agosto-2005
Mensajes: 20
Antigüedad: 18 años, 9 meses
Puntos: 0
<head>
<script languaje="javascript">
function valida_Text()
{
var i, buskeda=0, buscando=document.getElementById("mail");
for(i=0;i<=buscando.value.length;i++)
{
if(!isNaN(parseInt(buscando.value.charAt(i))))
{
buskeda+=1;
}
}
if(buskeda>=1)
{
alert("No inserte numeros");
buscando.focus()
}
else{
alert("Todo correcto!");
buscando.value="";
}
}
//fin de campo mail
</script>
</head>
<body>
<input id="mail" type="text" width="90px">
<input type="button" value="validar" onclick="valida_Text()">
</body>

te vale eso?????
te recomiendo el manual de javascript de http//www.desarrolloweb.com es muy bueno, de los que he leido es el que mejor se explica.

saludos!