Posted By

m00min on 02/01/08


Tagged

javascript js forms


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

luman
SpinZ
the_menace


Default text in a textbox


 / Published in: JavaScript
 

  1. <input type="text" value="Site search" onfocus="if (this.value=='Site search') {this.value = '';}" onblur="if(this.value=='') {this.value = 'Site search';}" name="search" />

Report this snippet  

You need to login to post a comment.