Not sure why you wouldn’t use a placeholder instead.
<input type="text" onfocus="if(this.value == 'search') { this.value = ''; }" value="search" />
Not sure why you wouldn’t use a placeholder instead.
<input type="text" onfocus="if(this.value == 'search') { this.value = ''; }" value="search" />