WebBrowser.InvokeScript Method

July 28, 2014

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:
© 2014 Microsoft