javascript - Hide the footer of web page on android's web view -
this seems easy task cant manage it. loading http://beta.tfl.gov.uk/plan-a-journey/ on web view , want remove footer display:
on web view have tried several things see no result in page loading
@override public void onpagefinished(webview view, string url) { wburl.loadurl("javascript:(function() { " + "document.getelementsbytagname('primary-footer')[0].style.display=\"none\"; " + "})()"); }
any ideas ?
you can try fetching page programatically (you can use httpurlconnection) , modify page (add .footer{display:none;} in header styles) , load modified page on webview.
Comments
Post a Comment