Print Page | Close Window

Search Box

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=2278
Printed Date: 22-July-2025 at 10:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Search Box
Posted By: cmason
Subject: Search Box
Date Posted: 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;">



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net