Ver Mensaje Individual
  #7 (permalink)  
Antiguo 08/09/2004, 12:33
Avatar de living
living
 
Fecha de Ingreso: mayo-2004
Mensajes: 1.266
Antigüedad: 20 años, 9 meses
Puntos: 2
Aquí te dejo un ejemplito

Código HTML:
<html>
<head>
<script>
function comprobarCampo(){
	if (document.getElementById("campo").value==""){
		alert("Rellene el campo");
		return false;
	}
}
</script>
</head>
<body>
<form onSubmit="return comprobarCampo()">
<input type="text" name="campo">
</form>
</body>
</html> 
__________________
¿Te apasiona el mundo del guión? El portal del guión