AllowScripting Property  
 

Determines if JavaScript execution is permitted in the browser.

Syntax

object.AllowScripting [= value ]

Remarks

This property enables or disables scripting in the browser and is enabled by default.

Nearly all modern websites depend on JavaScript, so setting this property to False will significantly limit what pages can display or function correctly. However, for controlled content where scripting is unnecessary or potentially unsafe, disabling this can enforce a higher level of security and prevent active content from running.

Some other options, such as receiving messages from the web application requires scripting to be enabled. If your application is only displaying local, static HTML content then you can set this property to False.

Data Type

Boolean

See Also

AllowMessages Property, AllowNavigation Property, AllowZoom Property, Execute Method, PostWebMessage Method, MessageReceived Event