Revision: 33247
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 7, 2010 05:33 by riddla
Initial Code
onfocus="if(this.value == this.defaultValue){ this.value='' };" onblur="if(this.value == ''){ this.value=this.defaultValue };"
Initial URL
Initial Description
In regards to progressive enhancement, see also the [jQuery version](http://snipplr.com/view/48275/default-value-for-input-fields-jquery-version/).
Initial Title
Default value for input fields
Initial Tags
form, javascript, html, forms
Initial Language
JavaScript