Click to return to the Reusing Browser Technology home page    
IHTMLWindow2::confirm Met...     IHTMLWindow2::focus Metho...     IHTMLWindow2 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLWindow2::execScript Method


Executes the specified script.

Syntax

HRESULT execScript(
    BSTR code,
    BSTR language,
    VARIANT *pvarRet
);

Parameters

code
String (BSTR) that specifies the script code to execute.
language
String (BSTR) that specifies the language in which the code is executed. The default is Microsoft® JScript® (compatible with ECMA 262 language specification).
pvarRet
Address of a VARIANT structure that receives the return value from the script code.

Return Value

Returns S_OK if successful, or an error code otherwise.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.