WebBrowser.InvokeScript Method (String)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Executes a scripting function defined in the currently loaded document.
Namespace: Microsoft.Phone.Controls
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
Public Function InvokeScript ( _
scriptName As String _
) As Object
public Object InvokeScript(
string scriptName
)
Parameters
- scriptName
Type: System..::.String
The scripting function to execute.
Return Value
Type: System..::.Object
Returns String.
The value returned by the scripting function.
Remarks
Script is turned off in the WebBrowser control by default. Set the IsScriptEnabled property to true if you want to enable scripting in your control.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone