CoreWebView2Settings.IsScriptEnabled Property
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.
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
.