Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/07/2005, 15:53
angsanchez
 
Fecha de Ingreso: octubre-2004
Ubicación: España
Mensajes: 894
Antigüedad: 19 años, 7 meses
Puntos: 3
Hola, cHiNiJa
<input type="text" name="nombre" size="15" onKeyPress=CampoVacio(this); />
<input type="text" name="apellidos" size="15" onKeyPress=CampoVacio(this); />

function CampoVacio (campo) {
if (campo.value == "")
...
}

Si no funcionase, prueba así:
function CampoVacio(campo) {
if (eval(campo+".value") == "")
...
}
__________________
Angel :cool: