28/09/2006, 14:08
|
| Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
<html>
<head>
<title>Untitled</title>
<script>
function comprobar(esto){
valor=esto.NombreUsuario.value.split(" ").join("");
if(valor==""){
alert('El campo Nombre de Usuario es Obligatorio');
return false;
}
}
</script>
</head>
<body>
<form nale="comentario" onsubmit="comprobar(this)">
<input type="text" name="NombreUsuario" >
<input type="submit">
</form>
</body>
</html>
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.
Última edición por KarlanKas; 28/09/2006 a las 14:15 |