IsScriptEnabled Property
Collapse the table of content
Expand the table of content

WebBrowser.IsScriptEnabled Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

'Declaration
Public Property IsScriptEnabled As Boolean
<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:
© 2016 Microsoft