I have developed a simple UIWEBVIEW app that showcases HTML content inside a UIWEBVIEW. Within the Webview, there is a JavaScript application integrated with my Xcode project that highlights selected words when a user inputs and clicks on a "Net" button. I am now working on implementing a "next" UIButton that will scroll down to the next highlighted word in the application. Below is the relevant JavaScript code:
UIWEBVIEWSEARCH.JS
// JavaScript function for highlighting all occurrences of a keyword
// Implementing functionality to navigate to the next highlighted word
...
A snippet from the XCODE file SearchWebView.M:
// Implementation of methods to interact with JavaScript functions
// Including highlighting occurrences and navigating to the next result
...
The issue I am facing is whether I have correctly declared the 'GoNext' function in my code. Currently, nothing happens when trying to go to the next highlighted word. Any assistance or guidance on this matter would be greatly appreciated. Thank you!