Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/02/2008, 12:36
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
Re: Valor inicial del campo de texto

Hola salbatore

Usa este código:

Código:
<input type="text" value="Escribe aquí"
onfocus = "if(this.value=='Escribe aquí') this.value=''"
onblur = "if (this.value=='') this.value='Escribe aquí'" />
Saludos,