Top Menu
onclick empty text box

when you click text box then empty text box and when you out text box without enter any words then insert default Value
 
<input name=”username” type=”text” value=”username” onfocus=”if(this.value==’username’)this.value=”” onblur=”if(this.value==”)this.value=’username'” />
 See Example

if  you Like this code then Please do the comments

About The Author

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Close