Instance Property

javaScriptEnabled

A Boolean value indicating whether JavaScript is enabled.

Declaration

var javaScriptEnabled: Bool { get set }

Discussion

The default value is true. Setting this property to false disables JavaScripts that are loaded or executed by the web page. This setting does not affect user scripts. See WKUserContentController.

See Also

Setting Java and JavaScript Preferences

var javaEnabled: Bool

A Boolean value indicating whether Java is enabled.

var javaScriptCanOpenWindowsAutomatically: Bool

A Boolean value indicating whether JavaScript can open windows without user interaction.

var plugInsEnabled: Bool

A Boolean value indicating whether plug-ins are enabled.