Sign in to follow this  
Lenggo

[web] Scroll bar position

Recommended Posts

I was just wondering if anyone knows how to change the initial starting position of a scroll bar. I have a layer that contains some dynamic data and I dont want it starting right at the top, but I'm not sure about how to reposition it. I was thinking that I need to use javascript but I'm not sure. Thanks in advance.

Share this post


Link to post
Share on other sites
I believe you can put an anchor in the page and then link to the anchor. This should accomplish what you're asking for. Reference this page: http://www.w3schools.com/html/html_links.asp

Share this post


Link to post
Share on other sites
With javascript, you can use the scrollHeight property to find the maximum scroll amount and scrollTop to set the scroll position.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this