Hi
how to change the background color in an html file. In b4a I could do it with webview extras and Javascript
code B4A:
how to change the background color in an html file. In b4a I could do it with webview extras and Javascript
code B4A:
B4X:
Private WebView1 As WebView
Private wve As WebViewExtras
Dim JSClient As DefaultJavascriptInterface
JSClient.Initialize
wve.Initialize(WebView1)
wve.AddJavascriptInterface(JSClient,"B4A")
wve.LoadUrl(xui.FileUri(File.DirAssets,"myfile.html"))
Sub WebView1_PageFinished (Url As String)
wve.ExecuteJavascript("document.body.style.backgroundColor = '#DDC8B0'")
End If