<html> <head> <script> function focusjText(thefield){ // função para colocar no onfocus if (thefield.defaultValue==thefield.value) { // se o valor que estiver no campo for o valor padrão thefield.value = ""; // apaga o conteúdo } } function blurjText(thefield){ // função para colocar no onblur if (thefield.value=="") { // se o campo estiver vazio thefield.value = thefield.defaultValue; // o campo fica com o texto padrão } } </script> </head> <body> <form> <input type="text" value="Buscar" onFocus="focusjText(this)" onblur="blurjText(this)"> <textarea onFocus="focusjText(this)" onblur="blurjText(this)">Digite suas sugestões</textarea> </form> </body> </html>