JavaScript输入框

来源:互联网 发布:淘宝香港高登 编辑:程序博客网 时间:2024/06/15 07:18

<textarea cols="50" rows="15" name="code" class="xhtml">&lt;input type=&quot;text&quot; onblur=&quot;if (value ==''){value='请输入关键字'}&quot; onfocus=&quot;if (value =='请输入关键字'){value =''}&quot; id=&quot;q&quot; name=&quot;q&quot; value=&quot;请输入关键字&quot; style=&quot;width: 100px; height: 14px;&quot;&gt;</textarea>

原创粉丝点击