Quando o texto é focado, o texto desaparece e quando o texto está fora de foco, o texto aparece
<! Doctype html> <html> <head> <meta charset = "utf-8"> <title> unt Documento titulado </ititle> </head> <body> <input id = "text" type = "text" value = "clique em eu desaparecer"/> <cript> var otext = document.getEleMentbyid "; ONOFF = true; otext.color = "#000"; otext.onfocus = function () {if (onoff) {this.value = ""; this.color = "Red"; onoff = false;}}} itext.onBl = function () {if (this.Value == '') { desaparecer "; ofoff = true;}} </script> </body> </html>