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
Copy file name to clipboardExpand all lines: docs/user-interface/controls/webview.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "WebView"
3
3
description: "This article explains how to use the .NET MAUI WebView to display remote web pages, local HTML files, and HTML strings."
4
-
ms.date: 04/15/2025
4
+
ms.date: 08/19/2025
5
5
zone_pivot_groups: devices-platforms
6
6
---
7
7
@@ -234,6 +234,27 @@ When page navigation occurs in a <xref:Microsoft.Maui.Controls.WebView>, either
234
234
235
235
::: moniker range=">=net-maui-10.0"
236
236
237
+
## Enable or disable JavaScript on Android
238
+
239
+
On Android, JavaScript execution is enabled by default for <xref:Microsoft.Maui.Controls.WebView>. You can toggle this behavior at runtime using the Android-specific platform configuration APIs:
> Disabling JavaScript may break functionality on sites that rely on it. Additionally, calls to <xref:Microsoft.Maui.Controls.WebView.EvaluateJavaScriptAsync%2A> won't execute scripts while JavaScript is disabled.
257
+
237
258
## Play video full screen on Android
238
259
239
260
When videos are hosted in a <xref:Microsoft.Maui.Controls.WebView> on Android, they can be played fullscreen by including `allowfullscreen` in the `iframe`:
0 commit comments