Trying to apply a local search file

I have a webviewer that calls a local file, but i need to find away to implement a search feature , can someone help me to implement it

explain more detail what do you want to actually do so anyone can help you

this is the block WebViewer1.HomeUrl = "file:///android_asset/srod.html" for the local file.

when this is called i want to be able to search through that file. So i want to impliment a search function. not sure how to do it

You should use:

http://localhost/srod.html

To search your html file use the runJavascript block, and some suitable javascript for your search. Return the output using the webViewString.

What kind of search?

A table lookup?

A JSON attribute value?

not sure how to do this. i am kind of new to the mit . i am creating an ebook app, so just searching for a phrase or a word from within the book

What do you want to do when you find it ?

Lets say the the html file has this data

"Imagine a super-smart computer that can solve problems faster than the brightest human minds. This is "AGI" (Artificial General Intelligence). While it sounds exciting, AGI could make decisions beyond our control and create technologies that might harm us."

I would want to implement a search that can find any word or phrase within.

eg. searching for the word "computer". it will look for this word and highlight it in the web viewer if found

Just the first instance, or all instances of the search term ?

Scroll to the first instance ? (if out of view...)

all instances. not just the one instance

This question on stackoverflow should give some pointers

thank you i will check it out