go
Expand Minimize
8 out of 14 rated this helpful - Rate this topic

execScript method

Executes the specified script in the provided language.

Syntax

var retval = window.execScript(code, language);

Parameters

code [in]

Type: String

String that specifies the code to be executed.

language [in]

Type: String

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

Return value

Type: Variant of type null

This method always returns null.

Standards information

There are no standards that apply here.

Remarks

Script executed through the 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.

See also

window

 

 

Send comments about this topic to Microsoft

Build date: 11/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.