2 thoughts on “JS: Clear Default Value onFocus”

  1. Here is an extention to the clear default value onFocus:

    onBlur=”if (this.value == ”) this.value = this.defaultValue;”

    It reenters the default value if it is left empty onBlur.

Comments are closed.