Skip to main content

One post tagged with "javascript"

View All Tags

Injecting JavaScript in Flutter Web View With User Scripts

· 6 min read
Lorenzo Pichilli
Plugin Author

Learn how to leverage Flutter's InAppWebView 6 plugin

article-banner.webp

Sometimes you may want to inject JavaScript code before or after the web page is loaded in order to add, replace or remove content from the web page or to change some web page logic.

In this article, we are going to understand what User Scripts are and how we can use them to inject custom JavaScript code at a specific time inside the WebView using the flutter_inappwebview plugin.