2006-05-3
JS: Clear Default Value onFocus
Simply add the following to the the onFocus attribute of any HTML form input tag.
[code lang="JavaScript"]if (this.value == this.defaultValue) this.value = '';[/code]
this.defaultValue is automatically given the value in the HTML.