Share via


WebView.SetIsJavaScriptAlertEnabled Method

Definition

Overloads

Name Description
SetIsJavaScriptAlertEnabled(BindableObject, Boolean)

Sets whether JavaScript alerts are enabled for the web view on Windows.

SetIsJavaScriptAlertEnabled(IPlatformElementConfiguration<Windows,WebView>, Boolean)

Sets whether JavaScript alerts are enabled for the web view on Windows.

SetIsJavaScriptAlertEnabled(BindableObject, Boolean)

Source:
WebView.cs
Source:
WebView.cs
Source:
WebView.cs

Sets whether JavaScript alerts are enabled for the web view on Windows.

public:
 static void SetIsJavaScriptAlertEnabled(Microsoft::Maui::Controls::BindableObject ^ element, bool value);
public static void SetIsJavaScriptAlertEnabled(Microsoft.Maui.Controls.BindableObject element, bool value);
static member SetIsJavaScriptAlertEnabled : Microsoft.Maui.Controls.BindableObject * bool -> unit
Public Sub SetIsJavaScriptAlertEnabled (element As BindableObject, value As Boolean)

Parameters

element
BindableObject

The element to configure.

value
Boolean

true to enable JavaScript alerts.

Applies to

SetIsJavaScriptAlertEnabled(IPlatformElementConfiguration<Windows,WebView>, Boolean)

Source:
WebView.cs
Source:
WebView.cs
Source:
WebView.cs

Sets whether JavaScript alerts are enabled for the web view on Windows.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Windows ^, Microsoft::Maui::Controls::WebView ^> ^ SetIsJavaScriptAlertEnabled(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Windows ^, Microsoft::Maui::Controls::WebView ^> ^ config, bool value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows,Microsoft.Maui.Controls.WebView> SetIsJavaScriptAlertEnabled(this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows,Microsoft.Maui.Controls.WebView> config, bool value);
static member SetIsJavaScriptAlertEnabled : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows, Microsoft.Maui.Controls.WebView> * bool -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows, Microsoft.Maui.Controls.WebView>
<Extension()>
Public Function SetIsJavaScriptAlertEnabled (config As IPlatformElementConfiguration(Of Windows, WebView), value As Boolean) As IPlatformElementConfiguration(Of Windows, WebView)

Parameters

config
IPlatformElementConfiguration<Windows,WebView>

The platform configuration.

value
Boolean

true to enable JavaScript alerts.

Returns

The updated platform configuration.

Applies to