When your website means business.

Forms | Type: JavascriptClear Input Field on Focus

Not sure why you wouldn’t use a placeholder instead.

<input type="text" onfocus="if(this.value == 'search') { this.value = ''; }" value="search" />