execScript method
[This documentation is preliminary and is subject to change.]
Executes the specified script in the provided language.
Syntax
object.execScript(code, language)Standards information
There are no standards that apply here.
Parameters
- code [in]
-
Type: BSTR
String that specifies the code to be executed.
- language [in]
-
Type: BSTR
String that specifies the language in which the code is executed. The language defaults to JScript.
Return value
Type: ObjectThis method always returns null.
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.
Build date: 2/14/2012
E_ACCESSDENIED
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
(VS 2008, XP + IE6, Vista + IE8)
(VS 2008, XP + IE6, Vista + IE8)
- 3/9/2010
- Atara____
may cause UnauthorizedAccessException
System.UnauthorizedAccessException: Access is denied.
at mshtml.IHTMLWindow2.execScript(String code, String language)
(VB .Net 1.1 - VS 2003)
at mshtml.IHTMLWindow2.execScript(String code, String language)
(VB .Net 1.1 - VS 2003)
- 10/12/2008
- Atara____
- 6/30/2009
- Silvius Durairaj