General Clearing Default Text of text box – HTML April 9, 2011 Pramod T P Leave a comment Eg : <input type=”text” name=”txt_name” value=”Name” onfocus=”if(this.value==’Name’)this.value=”;” onblur=”if(this.value==”){ this.value=’Name’;} “/>