PDA

Click to See Complete Forum and Search --> : Div autoscroll and set focus


DeadEyes
Nov 29th, 2002, 07:54 AM
Here's the situation:
I have a page which on the left has a DIV set to auto scroll,
and a list of links. When the user selects one of the links the
details appear on the right side of the screen after a submit.
The problem is when the page reloads the scroll bar for the DIV
is back at the top; whereas I want it to automaically scroll down
to the link that had been selected (so it stays in view).

Do I use window.scrollTo() and how?
Any ideas appriciated(sp?)

BTW this is for an IE specific web-app.

thanks in advance

jamieoboth
Dec 14th, 2002, 02:41 PM
Its ages since I used it last, but couldnt you just use:



<a href="window.location: #top">

or something like that. As I said, its a long, LONG time since I used it. Sorry I couldnt be more specific,


James