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.

Syntax

Public Property IsScriptEnabled As Boolean
public bool IsScriptEnabled { get; set; }
<object IsScriptEnabled="bool" .../>

Property Value

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

Remarks

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

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

WebBrowser Class

Microsoft.Phone.Controls Namespace