Clearing Default Text of text box – HTML

Eg :

<input type=”text”  name=”txt_name”  value=”Name”  onfocus=”if(this.value==’Name’)this.value=”;” onblur=”if(this.value==”){ this.value=’Name’;} “/>