即,如果文本搜索字段说“搜索”,当它们点击它时,它将清除该值.
<input type="text" onfocus="if(this.value == 'search') {this.value=''}" onblur="if(this.value == ''){this.value ='search'}">