View Full Version : hightlighting a search text
chelvis
07-17-2002, 06:58 PM
I have a website with a text box and a search button. Say if a user goes an enters a word in the text box (in this case say "chemistry") and when the search results appear, is it possible to make the word "chemistry" look highlighted or bold faced in the entire page with a Javascript? Can some one help me with this?
poccil
07-17-2002, 10:43 PM
Replying on behalf of Mrs G, who wrote:
Try something like
txt.select()
58Sniper
07-27-2002, 10:25 PM
But won't that just highlight text in an area, such as a text area?
I think that what he wants is to return, say, something like:
Results for search of 'supermodel '
1. Christie Brinkley - ultimate supermodel .
2. How to become a supermodel .
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.