
05/02/2006, 15:01
|
 | Me alejo de Omelas | | Fecha de Ingreso: mayo-2004 Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años, 9 meses Puntos: 834 | |
Código:
<html>
<head>
<title>Documento sin título</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function probar(texto){
var patron=/^([a-zA-Z]*\s?[a-zA-Z]*)?$/
if(patron.test(texto)==0){
alert('no');
}
}
</script>
</head>
<body>
<form name="form1" method="post" action="">
<input name="textfield" type="text" size="60" onKeyUp="probar(this.value)">
</form>
</body>
</html>
|