input clear event javascript code example
Example: input clear event javascript
<input type="text" value="A new value" onfocus="if(this.value=='A new value') this.value='';">
<input type="text" value="A new value" onfocus="if(this.value=='A new value') this.value='';">