Export (0) Print
Expand All
1 out of 11 rated this helpful - Rate this topic

execScript method

Executes the specified script in the provided language.


 retVal = object.execScript(code, language);


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.

Standards information

There are no standards that apply here.


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.



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.