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’;} “/>

Share

Leave a Reply

Your email address will not be published. Required fields are marked *