RegisterJSFunction Method (IBrowser)
Registers a function that can be called from JavaScript code.
Syntax
'Declaration Sub RegisterJSFunction( _ ByVal functionName As String, _ ByVal handler As JSFunctionInvokeHandler _ )
'Usage Dim instance As IBrowser Dim functionName As String Dim handler As JSFunctionInvokeHandler instance.RegisterJSFunction(functionName, handler)
void RegisterJSFunction( string functionName, JSFunctionInvokeHandler handler )
void RegisterJSFunction( String^ functionName, JSFunctionInvokeHandler^ handler )
Parameters
- functionName
- The JavaScript function name.
- handler
- The code to be executed when the function is called.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also