pbIsScriptEnabled - cWebView2Browser
Controls whether scripts within the loaded content are executed or not
Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None
Syntax
Property Boolean pbIsScriptEnabled
| Access Type | Syntax |
|---|---|
| Read Access: | Get pbIsScriptEnabled to BooleanVariable |
| Write Access: | Set pbIsScriptEnabled to BooleanVariable/Value |
Description
Controls whether scripts within the loaded content are executed or not.
Scripts executed using ExecuteScript will not be affected by this property.
Note that changes to this property at runtime are only applied after the next page load.
Default: True