Wenn der Text fokussiert ist, verschwindet der Text, und wenn der Text unscharf ist, erscheint der Text
<! docType html> <html> <kopf> <meta charset = "utf-8"> <title> bis betitelte Dokument </title> </head> <body> <input id = "text" type = "text" value = "klicken Sie auf mich, um zu verschwinden"/> <Script> var Otext = Dokument = Dokument ("text (" text ("text"); onoff=true;oText.color="#000";oText.onfocus=function(){if(onoff){this.value="";this.color="red";onoff=false;}}oText.onblur=function(){if(this.value==''){this.color="#000";this.value="Click me to verschwinden "; inoff = true;}} </script> </body> </html>