Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/07/2002, 14:48
jpenaloza
 
Fecha de Ingreso: mayo-2002
Mensajes: 12
Antigüedad: 22 años, 10 meses
Puntos: 0
Re: Funcion con Input Text

Esto lo saque de un ejemplo, espero que te sirva:
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}
</script>
</head>

<body bgcolor="#ffff99">
<center>
muestra un texto inicial, y lo elimina al recibir el foco
<form>
<input type="text" value="pon aquí tu nombre" onFocus="clearText(this)">