链接示例在这里:http: //jsfiddle.net/fxr5p/如果值为空,如何使onload工作onblur
功能?show type your keyword
,然后点击输入部分,onblur
单词消失?谢谢。
<input type="text" value="" id="search" name="Search" onblur="if(this.value=='') this.value='type your keyword';" onfocus="if(this.value=='type your keyword') this.value='';">