Results 1 to 2 of 2

Thread: How to highlight a word

  1. #1
    Join Date
    Oct 2008
    Posts
    40
    Thanks
    3
    Thanked 1 Time in 1 Post

    Smile How to highlight a word

    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 ....................

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •