how show text in input box and clear it in on click




How show text in input box and clear it in on click/on blur on focus on text box



Examaple:




Copy The Code Below


<input type="text" onblur="if(this.value==''){this.value='NAME';}" id="txtName" onfocus="if(this.value=='NAME'){this.value='';}" value="NAME" />

Comments