![]() |
Search Box |
Post Reply
|
| Author | |
cmason
Senior Member
Joined: 18-June-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Topic: Search BoxPosted: 24-December-2008 at 7:55am |
|
I have several search boxes available on a site and the Product search was getting a bit lost. I added a default/initial value of "Product Search" to the text box but it makes users annoyed to have to clear that out so I also added a js clear so that the default/initial value is removed when someone clicks on the text box.
It now looks like this in SmallSearchBox.asp <input type="Text" name="keyword" size="25" value="PRODUCT SEARCH" id="smallsearchbox" onfocus="this.value = ( this.value == this.defaultValue ) ? '' : this.value;return true;"> |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |