scrollBy Method

DHTML, HTML, & CSS

 
Click to return to the DHTML, HTML & CSS home page    
scroll Method     scrollIntoView Method     DHTML Methods    

scrollBy Method


Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offset.

Syntax

window.scrollBy(iX, iY)

Parameters

iXRequired. Integer that specifies the horizontal scroll offset, in pixels. Positive values scroll the window right, and negative values scroll it left.
iYRequired. Integer that specifies the vertical scroll offset, in pixels. Positive values scroll the window down, and negative values scroll it up.

Return Value

No return value.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.

window


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.