When I inject document.getElementsByTagName("body")[0].style.background = "red"; in developers console in firefox, background becomes red. But when I do webview.loadUrl("javascript:document.getElementsByTagName(\"body\")[0].style.background = \"red\";"); in android webview, whole content in it gets replaced by the word "red". Why is background color not changing and content is being replaced? Also, how can I change the style properties in webview using javascript?
- Have you been able to fix this? I have the same problem...bvanvelsen - ACA Group– bvanvelsen - ACA Group2015-04-28 08:40:34 +00:00Commented Apr 28, 2015 at 8:40
Add a comment |