Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

WebView Dump all html

wvbrowser.evaluateJavascript(
        "(function() { return ('<html>'+document.getElementsByTagName('html')[0].innerHTML+'</html>'); })();",
         new ValueCallback<String>() {
            @Override
            public void onReceiveValue(String html) {
                Log.d("HTML", html); 
                // code here
            }
    });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #WebView #Dump #html
ADD COMMENT
Topic
Name
8+3 =