Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WebBrowser.InvokeScript Method

[ 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.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method InvokeScript(String) Executes a scripting function defined in the currently loaded document.
Public method InvokeScript(String, String[]) Executes a scripting function defined in the currently loaded document, and passes the function an array of string parameters.
Top

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.

Show: