Windows Dev Center

WebBrowser.IsScriptEnabled Property

Enables or disables scripting. This applies to the next document that is navigated to, not the current document. This property is false by default. Set this property to true to enable scripting, or false to disable scripting.

Namespace:  Microsoft.Phone.Controls
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

public bool IsScriptEnabled { get; set; }
<object IsScriptEnabled="bool" .../>

Property Value

Type: System.Boolean
Returns Boolean. true if scripting is enabled; otherwise, false.

After setting this property, scripting is enabled or disabled on the next page load. The change does not affect the currently loaded document.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft