execScript method

[This documentation is preliminary and is subject to change.]

Executes the specified script in the provided language.

Syntax


 retVal = object.execScript(code, language);

Standards information

There are no standards that apply here.

Parameters

code [in]

Type: BSTR

BSTR that specifies the code to be executed.

language [in]

Type: BSTR

BSTR that specifies the language in which the code is executed. The language defaults to JScript.

Remarks

Script executed through the IHTMLWindow2::execScript method can access all global variables available to the calling script. This can be useful when you want the functionality of another scripting language that would not otherwise be available in JScript, such as the Microsoft Visual Basic Scripting Edition (VBScript) MsgBox function.

 

 

Build date: 6/12/2012

Community Additions

Show: