WebBrowser.InvokeScript Method (String, String)
May 11, 2014
Executes a scripting function defined in the currently loaded document, and passes the function an array of string parameters.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
- Type: System.String
The scripting function to execute.
A variable number of strings to pass to the function as parameters.
Return ValueType: System.Object
The value returned by the scripting function.
InvokeScript takes a variable number of arguments that are passed into the scripting function designated by scriptName. The following code example passes the arguments "one", "two", and "three" to the scripting function "myFunction": args.