<input name="q" onfocus="if (this.value=='search') this.value = ''" type="text" value="search">
... from the Stack Overflow search box.
You can also add an onblur event to check: if (this.value=='') this.value = 'search'
This will re-print the watermark when the user clicks outside the text field and the field is empty.
Daniel Vassallo
source share