@RBS since you don't specify what value you want to read from html element, let me assume that you want to grab the final score.
View attachment 85301
Getting value from element was easier when the element has "id" attribute, in your case the url above does not have any id's or name for element i want to read. so my approach is reading html structure where the score page is display.
The score result represented with
table tag. Reading from page source code, the
table-tag containing result exist at index 22. So try to change the project (base on my code-snipped) with this one:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
we.addJavascriptInterface(WebView1,"B4A")
'WebView1.LoadUrl(WebViewAssetFile("index.html"))
WebView1.LoadUrl("https://qrisk.org/three/")
End Sub
Sub Button1_Click
'we.executeJavascript(WebView1,"javascript: doCallBack();")
we.addWebChromeClient(WebView1,"")
Dim js As String = "B4A.CallSub('ShowResult',True,document.getElementsByTagName('table')[22].rows[0].cells[0].innerHTML)"
we.executeJavascript(WebView1,js)
End Sub
'new sub
Sub ShowResult(result As String)
Msgbox(result,"Result")
End Sub