An app may need to interact with the WebView control, such as to call a JavaScript function for the web page currently loaded in the WebView. An app can run script within the WebView control by using the invokeScript method.
Under the Output heading below, the displayed HTML has been loaded into the WebView control. Type some text into the text field and click the "Invoke Script" button to call the changeText JavaScript function.