WebView.SetIsJavaScriptAlertEnabled Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetIsJavaScriptAlertEnabled(BindableObject, Boolean) |
Sets a Boolean value that tells whether the web view allows JavaScript alerts. |
SetIsJavaScriptAlertEnabled(IPlatformElementConfiguration<Windows,WebView>, Boolean) |
Sets a Boolean value that tells whether the web view allows JavaScript alerts. |
SetIsJavaScriptAlertEnabled(BindableObject, Boolean)
Sets a Boolean value that tells whether the web view allows JavaScript alerts.
public static void SetIsJavaScriptAlertEnabled (Xamarin.Forms.BindableObject element, bool value);
static member SetIsJavaScriptAlertEnabled : Xamarin.Forms.BindableObject * bool -> unit
Parameters
- element
- BindableObject
The web view element whose JavaScript alert permissions to set.
- value
- System.Boolean
to allow JavaScript alerts. Otherwise, false
.
Applies to
SetIsJavaScriptAlertEnabled(IPlatformElementConfiguration<Windows,WebView>, Boolean)
Sets a Boolean value that tells whether the web view allows JavaScript alerts.
public static Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Windows,Xamarin.Forms.WebView> SetIsJavaScriptAlertEnabled (this Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Windows,Xamarin.Forms.WebView> config, bool value);
static member SetIsJavaScriptAlertEnabled : Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Windows, Xamarin.Forms.WebView> * bool -> Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Windows, Xamarin.Forms.WebView>
Parameters
The platform configuration for the web view element whose JavaScript alert permissions to set.
- value
- System.Boolean
to allow JavaScript alerts. Otherwise, false
.
Returns
A fluent object on which the developer may make further method calls.