html input onfocus

<input type="text" value="请输入内容" onfocus="javascript:if(this.value=='请输入内容')this.value='';">