Click to return to the Reusing Browser Technology home page    
IHTMLWindow2::scrollTo Me...     IHTMLWindow2::setTimeout ...     IHTMLWindow2 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLWindow2::setInterval Method


Calls a function repeatedly, or evaluates an expression after a specified number of milliseconds has elapsed.

Syntax

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

Parameters

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

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

See Also

clearInterval



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.