View Single Post
  #1 (permalink)  
Old Jul 8th, 2006, 10:18
sameer2k sameer2k is offline
New Member
Join Date: Jul 2006
Location: India
Age: 28
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Find(on this Page) Feature for HTML table

Hi,

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.

Thanks,
sameer.
Reply With Quote