<form name="form1" method="post" action=""> <input name="textfield" type="text" value="nick" onfocus="if (this.value==this.defaultValue) {this.value='';}"> </form>