You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to display part of the my web page. I can do it with Android WebView.
In Flutter How can I display a part of the webpage and use document.getElementsByClassName?
view.getSettings().setJavaScriptEnabled(true);
view.setWebViewClient(new WebViewClient() {
@Override
public void onPageFinished(WebView view, String url)
{
view.loadUrl("javascript:(function() { " +
"var head = document.getElementsByClassName('header')[0].style.display='none'; " +
"var head = document.getElementsByClassName('blog-sidebar')[0].style.display='none'; " +
"var head = document.getElementsByClassName('footer-container')[0].style.display='none'; " +
"})()");
}
});
view.loadUrl("your url");
The text was updated successfully, but these errors were encountered:
I need to display part of the my web page. I can do it with Android WebView.
In Flutter How can I display a part of the webpage and use document.getElementsByClassName?
The text was updated successfully, but these errors were encountered: