SyntaxFix
Write A Post
Hire A Developer
Questions
This is the right, cross-browser way to do it :
<input type="text" value="Enter Your Name" onfocus="if(this.value == 'Enter Your Name') { this.value = ''; } " onblur="if(this.value == '') { this.value = 'Enter Your Name'; } " />