Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/09/2012, 17:37
ocp001a
Colaborador
 
Fecha de Ingreso: mayo-2008
Ubicación: $MX['VZ']['Xalapa']
Mensajes: 3.005
Antigüedad: 16 años
Puntos: 528
Respuesta: Como utilizar focus

Intenta así:

Código Javascript:
Ver original
  1. if (document.getElementById('nombre').value == "") {
  2.        alert('Por favor complete el campo nombre');
  3.        document.getElementById('nombre').focus();
  4.        return false;
  5. }