Freigeben über


CoreWebView2Settings.IsScriptEnabled Property

Definition

Determines whether running JavaScript is enabled in all future navigations in the WebView.

public bool IsScriptEnabled { get; set; }
member this.IsScriptEnabled : bool with get, set
Public Property IsScriptEnabled As Boolean

Property Value

Remarks

This only affects scripts in the document. Scripts injected with ExecuteScriptAsync(String) runs even if script is disabled. The default value is true.

Applies to