I saw the related topic but I could not get it to function.I need to remove a search bar and a navigation dropdown from a web view I am using.My code is below.\[code\]webView.getSettings().setJavaScriptEnabled(true); webView.setWebViewClient(new WebViewClient() { public void onPageFinished(WebView view, String url) { webView.loadUrl("javascriptfunction() { " + "document.getElementsById('omc-main-navigation')[0].style.display = 'none'; " + "})()"); } }); webView.loadUrl(links.get(arg2)); \[/code\]