Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/06/2004, 10:59
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 7 meses
Puntos: 772
Hola, jacven.

A ver si con esto te funciona:
Código HTML:
<html>
<head>
<script>
function validar(txt) {
	co=txt.split('@');
	if(co.length>2 || co[1]!='yahoo.com') {
		alert('Correo no valido');
		return false;
	}
}
</script>
</head>

<body>
<form action="mailto:[email protected]" onsubmit="return validar(this.correo.value)">
<input type="text" name="correo" />
<input type="submit" />
</form>
</body>
</html> 
Saludos,