Contents

allowsContentJavaScript

Indicates whether JavaScript from web content is allowed to run.

Declaration

var allowsContentJavaScript: Bool

Discussion

The default value of this property is true. If you change the value to false, the web page doesn’t execute JavaScript code referenced by the web content. That includes JavaScript code found in inline <script> elements, javascript: URLs, and all other referenced JavaScript content.