I'm trying to duplicate the effect used in the Firefox search box where, if the search field does not have focus ( the user has not clicked inside of it ), it just says Google in gray text. Then, when the user clicks in the box, the text is removed and they can fill in their search term.
I want to use this to provide example field data for a web form.
JQuery syntax would be preferable to plain javascript, but plain JS would be fine too.
Thanks SO Hive Mind!