Revision: 28757
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 14, 2010 02:59 by iqwebdev
Initial Code
<input type="text" onfocus="if(this.value == 'value') { this.value = ''; }" value="value" />
Initial URL
Initial Description
Replace “value†with the default value. If the field is selected, the default value will go away. If the user has previously changed the field value, it’ll be left alone. Alternatively, use onfocus=â€this.value=â€;†to always clear the field.
Initial Title
Clear Field on Focus
Initial Tags
forms
Initial Language
JavaScript