Search This Blog

Sunday, September 12, 2010

Javascript for textbox auto value Display

This code is used to display auto
value of the textbox when there is no text 
entered in it.....  
 
<input style="" name="text" size="45" value="Search"  
onfocus="if(this.value=='Search')this.value=''; 
this.style.color='black';" onblur="if(this.value=='')
{ this.value = 'Search'; this.style.color='';}" type="text">

No comments:

Post a Comment