Window.scroll() (Method)

This is equivalent to the scrollTo() method but has been retained for backwards compatibility.


JavaScript - 1.1
JScript - 3.0
Internet Explorer - 4.0
Netscape - 3.0
Opera - 3.0
Property/method value type:undefined
JavaScript syntax:-myWindow.scroll(aPositionX, aPositionY)
-scroll(aPositionX, aPositionY)
Argument list:aPositionXA position in pixels
aPositionYA position in pixels
Deprecated:JavaScript - 1.2 

The window content will be scrolled by the amount specified in the X and Y values.


See also:Frame object, Window object, Window.scrollBy(), Window.scrollTo()