scrollBy method
[This documentation is preliminary and is subject to change.]
Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offset.
Syntax
var retval = window.scrollBy(x, y);Standards information
There are no standards that apply here.
Parameters
- x [in]
-
Type: long
Integer that specifies the horizontal scroll offset, in pixels. Positive values scroll the window right, and negative values scroll it left.
- y [in]
-
Type: long
Integer that specifies the vertical scroll offset, in pixels. Positive values scroll the window down, and negative values scroll it up.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
See also
Build date: 3/8/2012