Form Value Clear/Reappear Script


/ Published in: HTML
Save to your folder(s)

In HTML forms, places this script in inputs to clear the value. If input box is blank, original value repopulates the input box.


Copy this code and paste it in your HTML
  1. value="Insert E-Mail Here" onfocus="if (this.value == 'Insert E-Mail Here') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Insert E-Mail Here';}"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.