It's more apropriate to handle the "onfocus" event ...
Also it's better to use the HTML object itself:
[js]<input class="search" type="text" name="stext" size="60" value="Search by Keyword or Part #" onfocus="this.value=''"/>[/js]
There are 10 types of people in this world, those who understand binary and those who don't
Yes but if the user accedently loses focus when they typed something in the search box, they will lose what they typed when they give focus back to the search box again.
<input class="search" type="text" name="stext" size="60" value="Search by Keyword or Part #" onfocus="if (this.value == 'Search by Keyword or Part #') { this.value = ''; }" onblur="if (this.value == '') { this.value = 'Search by Keyword or Part #'; }"/>