<p>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 <i>Google</i> in gray text. Then, when the user clicks in the box, the text is removed and they can fill in their search term.</p>

<p>I want to use this to provide example field data for a web form.</p>

<p>JQuery syntax would be preferable to plain javascript, but plain JS would be fine too.</p>

<p>Thanks SO Hive Mind!</p>

```
$(selector).text('Google'); 
  $(selector).click(function(){
    $(this).text('');
  });
```
There's probably a more elegant way to do it, but this assumes your box has no text in it at page load.  If it does you can remove the first line.
I haven't tested this, but it should work.