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

IHTMLWindow2::scrollTo Method


Given the area specified as (X,Y) in document coordinates, scrolls the document to that position.

Syntax

HRESULT scrollTo(
    long x, 
    long y 
);

Parameters

x
Long integer that contains the value for the x direction scroll position coordinate.
y
Long integer that contains the value for the y direction scroll position coordinate.

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

scrollBy



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.