Listen for button click on web page
If anyone is familiar with Android, there is a function call shouldOverrideUrlLoading that according to documentation: "Give the host application a chance to take over the control when a new url is about to be loaded in the current WebView. If WebViewClient is not provided, by default WebView will ask Activity Manager to choose the proper handler for the url. If WebViewClient is provided, return true means the host application handles the url, while return false means the current WebView handles the url. This method is not called for requests using the POST "method"/
I need something like this for a C# winforms application displaying a webpage. Within the web page, there is a button, within the html/javascript that when clicked, a javascript function changes the url to something, then I need to check for this change and parse json that is sends. Its latitude and longitude and I hopefully want to open googleMaps with the webview. I've seen some tutorials but they dont take into account I need the button clicked first to call the javascript function