Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Form values that disappear on click


rwilson - 2:21 pm on Aug 10, 2012 (gmt 0)


Try this.

<input type="text" onblur="if (this.value=='') { this.value='Please enter your text'; }" onfocus="if (this.value=='Please enter your text') { this.value=''; }" value="Please enter your text" id="search" name="search">


Thread source:: http://www.webmasterworld.com/javascript/4483381.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com