C# .Net - Set and Clear text in a Text Box using Javascript onfocus and on blur < asp : TextBox ID ="SearchBox" Text ="Search here..." runat ="server" class ="SearchBoxFP" onfocus ="javascript: if(this.value == 'Search here...'){ this.value = ''; }" onblur ="javascript: if(this.value == ''){ this.value = 'Search here...'; }"></ asp : TextBox >
Mark Downie - Umbraco 7 and Umbraco 8 (and umbraco 4) Developer - Code Snippets - Glasgow - Scotland
I am Mark Downie a web developer who uses the Umbraco CMS. You can see examples of my Umbraco web sites at: http://www.markdevelopment.co.uk If you have any questions, please contact me. Thanks