View Full Version : Find(on this Page) Feature for HTML table

07-08-2006, 12:12 PM

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.


07-08-2006, 12:18 PM