scrollTo jumps the window directly to a location from where ever you are.

scrollBy scrolls the window a certain amount. For example,

If your at X: 25, Y: 50

scrollTo(100,100) would take you to X:100, Y:100

scrollBy(100,100) would take you to X:125, Y:150.

Here's an example of scrollTo. The syntax for scrollBy is the same.

<HTML><HEAD><TITLE>ScrollTo Example</TITLE></HEAD>

<BODY>

<A HREF="javascript:scrollTo(0,1000)">Scroll Down</A>

<BR>q<BR>w<BR>e<BR>r<BR>t<BR>y

<BR>u<BR>i<BR>o<BR>p<BR>a<BR>s

<BR>d<BR>h<BR>j<BR>k<BR>l<BR>z

<BR>x<BR>c<BR>v<BR>b<BR>n<BR>m

<BR>q<BR>w<BR>e<BR>r<BR>t<BR>y

<BR>u<BR>i<BR>o<BR>p<BR>a<BR>s

<BR>d<BR>f<BR>g<BR>h<BR>j<BR>k

<BR>l<BR>z<BR>x<BR>c<BR>v<BR>b

<BR>n<BR>m<BR>q<BR>w<BR>e<BR>r

<BR>t<BR>y<BR>q<BR>w<BR>e<BR>r

<BR>t<BR>y<BR>u<BR>i<BR>o<BR>p

<BR>a<BR>s<BR>d<BR>h<BR>j<BR>k

<BR>l<BR>z<BR>x<BR>c<BR>v<BR>b

<BR>n<BR>m<BR>q<BR>w<BR>e<BR>r

<BR>t<BR>y<BR>u<BR>i<BR>o<BR>p

<BR>a<BR>s<BR>d<BR>f<BR>g<BR>h

<BR>j<BR>k<BR>l<BR>z<BR>x<BR>c

<BR>v<BR>b<BR>n<BR>m<BR>q<BR>w

<BR>e<BR>r<BR>t<BR>y<BR>q<BR>w

<BR>e<BR>r<BR>t<BR>y<BR>u<BR>i

<BR>o<BR>p<BR>a<BR>s<BR>d<BR>h

<BR>j<BR>k<BR>l<BR>z<BR>x<BR>c

<BR>v<BR>b<BR>n<BR>m<BR>q<BR>w

<BR>e<BR>r<BR>t<BR>y<BR>u<BR>i

<BR>o<BR>p<BR>a<BR>s<BR>d<BR>f

<BR>g<BR>h<BR>j<BR>k<BR>l<BR>z

<BR>x<BR>c<BR>v<BR>b<BR>n<BR>m

<BR>q<BR>w<BR>e<BR>r<BR>t<BR>y

</BODY>

</HTML>

scrollBy scrolls the window a certain amount. For example,

If your at X: 25, Y: 50

scrollTo(100,100) would take you to X:100, Y:100

scrollBy(100,100) would take you to X:125, Y:150.

Here's an example of scrollTo. The syntax for scrollBy is the same.

<HTML><HEAD><TITLE>ScrollT

<BODY>

<A HREF="javascript:scrollTo(

<BR>q<BR>w<BR>e<BR>r<BR>t<

<BR>u<BR>i<BR>o<BR>p<BR>a<

<BR>d<BR>h<BR>j<BR>k<BR>l<

<BR>x<BR>c<BR>v<BR>b<BR>n<

<BR>q<BR>w<BR>e<BR>r<BR>t<

<BR>u<BR>i<BR>o<BR>p<BR>a<

<BR>d<BR>f<BR>g<BR>h<BR>j<

<BR>l<BR>z<BR>x<BR>c<BR>v<

<BR>n<BR>m<BR>q<BR>w<BR>e<

<BR>t<BR>y<BR>q<BR>w<BR>e<

<BR>t<BR>y<BR>u<BR>i<BR>o<

<BR>a<BR>s<BR>d<BR>h<BR>j<

<BR>l<BR>z<BR>x<BR>c<BR>v<

<BR>n<BR>m<BR>q<BR>w<BR>e<

<BR>t<BR>y<BR>u<BR>i<BR>o<

<BR>a<BR>s<BR>d<BR>f<BR>g<

<BR>j<BR>k<BR>l<BR>z<BR>x<

<BR>v<BR>b<BR>n<BR>m<BR>q<

<BR>e<BR>r<BR>t<BR>y<BR>q<

<BR>e<BR>r<BR>t<BR>y<BR>u<

<BR>o<BR>p<BR>a<BR>s<BR>d<

<BR>j<BR>k<BR>l<BR>z<BR>x<

<BR>v<BR>b<BR>n<BR>m<BR>q<

<BR>e<BR>r<BR>t<BR>y<BR>u<

<BR>o<BR>p<BR>a<BR>s<BR>d<

<BR>g<BR>h<BR>j<BR>k<BR>l<

<BR>x<BR>c<BR>v<BR>b<BR>n<

<BR>q<BR>w<BR>e<BR>r<BR>t<

</BODY>

</HTML>