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: enter image description here

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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -