Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/11/2004, 10:37
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años, 1 mes
Puntos: 772
Hola a todos.

El campo de texto:

<input type="text" onblur="validar(this)" />

y la función para validarlo:
Código HTML:
function validar(obj) {
	if(obj.value=='') {
  	alert('¿Aonde vas?');
    obj.focus();
  }
}
Saludos,