We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

luman on 10/23/06


Tagged

input


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

matt
m0rris


input default value


Published in: JavaScript 


URL: http://discoapp.com/beta/

  1. <input id="1" name="post[email]" value="E-mail Address" style="width:100%; text-align: center; color: grey; margin-bottom: 10px;" onblur="if (this.value == '') {this.value = 'E-mail Address'; document.getElementById(1).style.color = 'grey';}" onfocus="if (this.value == 'E-mail Address') {this.value = ''; document.getElementById(1).style.color = '#000000'; }" />

Report this snippet 

You need to login to post a comment.