I want to add 'search our website' label inside the search input field. When the user clicks to enter a search keyword the text disappears no backspace or delete of the text required. Any thoughts?
GIo
Adding text to the search text box
- gio50000
- Commander (CMDR)
- Posts: 123
- Joined: Mon Feb 18, 2008 12:51 pm
- Location: Orlando, FL
- Contact:
Adding text to the search text box
Thank you,
Gio
Gio
Re: Adding text to the search text box
One simple attempt could be to edit ConLib/SimpleSearch.ascx file and update following code
to
Code: Select all
<asp:TextBox ID="SearchPhrase" runat="server" CssClass="searchPhrase" MaxLength="60"></asp:TextBox>
Code: Select all
<asp:TextBox ID="SearchPhrase" Text="Search our web..." onfocus="this.value='';" runat="server" CssClass="searchPhrase" MaxLength="60"></asp:TextBox>