reset_form_value = function (str1, str2, val) {
if (str1 == val.value.trim())
val.value = str2;
}
Markup:

<asp:TextBox ID=”txtTitle” runat=”server” onfocus=”reset_form_value(‘Title’, ”, this)” onblur=”reset_form_value(”, ‘Title’, this)” Text=”Title” />

Advertisements