Click to See Complete Forum and Search --> : Auto Scrolling


brownbe1
02-06-2003, 03:34 PM
Hello. I'm wondering if it is possible to use javascript to scroll to a certain area of a page. I have an image that is significantly larger than the web browser window, so I need a way to scroll to a particular area of the image. Is this possible using javascript? Thanks.

Sergey Smirnov
02-06-2003, 04:10 PM
Use scrollTo(x,y)

For example:

<body onload="scrollTo(0,400)">

brownbe1
02-07-2003, 12:12 PM
Thank you so much! This is exactly what I was looking for. :-)