[Javascript] scrolling frame/window

Dan Costea costea.dan at ssi-schaefer.ro
Wed May 22 19:15:48 CDT 2002


The "window" object has 3 methods that might interest you:
window.scroll(iX, iY)
Parameters

        iX Required. Integer that specifies the horizontal scroll offset, in
pixels.
        iY Required. Integer that specifies the vertical scroll offset, in
pixels.

-----------------------------------------
window.scrollBy(iX, iY)
Parameters

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

-----------------------------------------
window.scrollTo(iX, iY)
Parameters

        iX Required. Integer that specifies the horizontal scroll offset, in
pixels.
        iY Required. Integer that specifies the vertical scroll offset, in
pixels.



Dan.

----- Original Message -----
From: "Andrew Dunn" <andrew at d2k.com.au>
To: <javascript at LaTech.edu>
Sent: Wednesday, May 22, 2002 1:01 AM
Subject: [Javascript] scrolling frame/window


> Hi,
> I think you can scroll a frame with javascript but i can't remember how?
Can
> anyone help out?
>
> Thanks.
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list