Input type "Text" to have a blurred text, which dissappears onFocus?

Posted by Camran on Stack Overflow See other posts from Stack Overflow or by Camran
Published on 2010-05-18T15:58:09Z Indexed on 2010/05/18 16:10 UTC
Read the original article Hit count: 118

Filed under:
|

Some websites have forms with input type="text". And inside these textboxes there is a blurred text, which says for example: "Enter your name here". And then onClick or OnFocus or whatever, the text dissappears and you can type into the textbox.

Like the title of posting a question here at stackoverflow, same thing.

How is this done easiest way? Would prefer if there was not too much js involved.

Thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html