Dear Friend,
I use the same, use this hope it works.
<input type="text" name="filter" onfocus="searchfield_focus(this)" onBlur="fun_return(this)" value="Enter The Text To Search">
<script language="javascript">
function searchfield_focus(obj)
{
obj.style.color=""
obj.style.fontStyle=""
if (obj.value=="Enter The Text To Search")
{
obj.value=""
}
}
function fun_return(obj)
{
if (obj.value=="")
{
obj.style.color="#808080"
obj.style.fontStyle="italic"
obj.value="Enter The Text To Search"
}
}
</script language="javascript">
Regards,
AP