Click to return to the Reusing Browser Technology home page    
IHTMLWindow3::setInterval...     IHTMLWindow3::showModeles...     IHTMLWindow3 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLWindow3::setTimeout Method


Evaluates an expression after a specified number of milliseconds has elapsed.

Syntax

HRESULT setTimeout( 
    VARIANT *expression,
    long msec,
    VARIANT *language,
    long *timerID 
);

Parameters

expression
Address of a VARIANT structure that returns a string that specifies the code to be executed repeatedly at the specified interval.
msec
Long variable that returns a numeric value or numeric string that specifies the time-out interval, in milliseconds.
language
Address of a VARIANT structure that returns a string that specifies the language in which the code is executed.
timerID
Address of a long variable that receives a time-out identifier. This identifier is used only to cancel the evaluation with the clearTimeout method.

Return Value

Returns S_OK if successful, or an error code otherwise.

See Also

IHTMLWindow2::setTimeout



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.