PDA

View Full Version : How to highlight a word



pankaj.ghadge
11-24-2008, 06:03 AM
Hello,

I have search option in my application.
suppose the user has entered a string like "hi javascript code 13".

and the body contain text is like this
e.g (After searching for a set of words on a common search engine, it can be extremely helpful when the pages found in the results of the search detect that they are being linked from a search and consequently javascript automatically highlight all of the search words. Implementing this feature is fairly simple hi to code do with client-side JavaScript, which gets embedded directly into a 13 web page.)

The body text should be highlighted like this .....................

Can u please tell me how to do this ....................

Snookerman
11-24-2008, 11:57 AM
This site might be helpful:
http://www.nsftools.com/misc/SearchAndHighlight.htm