Share via


WebViewSettings.IsJavaScriptEnabled Property

Definition

Gets or sets a value that indicates whether the use of JavaScript is allowed in the WebView.

public:
 property bool IsJavaScriptEnabled { bool get(); void set(bool value); };
bool IsJavaScriptEnabled();

void IsJavaScriptEnabled(bool value);
public bool IsJavaScriptEnabled { get; set; }
var boolean = webViewSettings.isJavaScriptEnabled;
webViewSettings.isJavaScriptEnabled = boolean;
Public Property IsJavaScriptEnabled As Boolean

Property Value

Boolean

bool

true if JavaScript is allowed in the WebView; otherwise, false. The default is true.

Applies to