I have set up a search in uiwebview with javascript that works great, but I want to be able to jump to the next found word in the search results. I have succeeded in geting the view to scroll to the first instance by using this code:
if (uiWebview_SearchResultCount == 1)
{
var desiredHeight = span.offsetTop - 140;
window.scrollTo(0,desiredHeight);
}
How can I get this searchresultcount to update to the next found result(say 2, 3, 4, 5, ect…) when user presses button in app?? Thanks in advance.
I was able to do basically the same thing with this javascript in the webview:
Then sending this JavaScript call with my IBAction like this: