Posted By

officiallyWise on 08/26/11


Tagged

clear html forms Value onfocus Onblur


Versions (?)

Form Value Clear/Reappear Script


 / Published in: HTML
 

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

  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
Posted By: BebenKoben on August 26, 2011

i think browse now have support about "placeholder"

http://beben-koben.blogspot.com/2011/07/html5-placeholder-with-css.html

hihihi...cheers^^

You need to login to post a comment.