Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2006
    Thanked 0 Times in 0 Posts

    Find(on this Page) Feature for HTML table


    I would like to know, is it possible to have a "Find on this page" on html page using javascript. I have one html page with me containing tables & displaying data in form of rows & columns. I just want to have a keyword based search on the contents of this html page using javascript, so that it will emulate the behavior of "web page navigation as in Mozilla FireFox/Notepad contents etc". If the find "keyword" provided by the user presents on the page, one by one all its occurrences gets highlighted on pressing enter. Please let me know can I have the similar search feature in javascript. If possible, please provide me with the sample code as i am new to javascript.

    I know the HTML tables can be traversed with the help of javascript like
    DOM interfaces but I want matching of keywords with contents & their highlights after finding them.


  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    In a place far, far away...
    Thanked 1,043 Times in 1,019 Posts
    ||||If you are getting paid to do a job, don't ask for help on it!||||


    Posting Permissions

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