how to hide my website header in android webview? I have tried javascript function in my mainactivity.java but not worked, Please hep, Thanks in advance!
This is Im tried
@Override public void onPageFinished(WebView view, String url) { myWebView.loadDataWithBaseURL("javascript:(function() { " + "document.get('header')[0].style.display='none'; " + "})()"); }
This is Im triedand what is the result?not working!any error messages in logcat? Maybe you are using wrong ID? You didn't show your HTML, so I can't help.How to find the correct ID for header-You didn't show your HTML, so I can't help.