![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/07/2007, 12:41
|
![Avatar de JavierB](http://static.forosdelweb.com/customavatars/avatar16568_12.gif) | Colaborador | | Fecha de Ingreso: febrero-2002 Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años Puntos: 772 | |
Re: Limpiar o no un campo Hola caberto
Prueba este código:
Código:
<input type="text" value="cualquiera" onfocus = "if (this.value=='cualquiera') this.value = ''"
onblur = "if (this.value=='') this.value = 'cualquiera'" />
Saludos, |