How can I set the scrollbar position of the web
Question
How can I set the scrollbar position instead of default on the top
update:I mean that when the user open the web first time the scrollbar is on the top of the screen(it default)
how can I set the scrollbar position(the middle or on the bottom)? so the user can see the
middle of the web or the bottom of the web,How I can do it?
Solution
Can you use:
<a name="myname" />
where you want to scroll to... and reference the page with:
www.example.com/mypage.html#myname
?
OTHER TIPS
You can use anchors as BoltBait sugggested or use javascript's:
window.scroll(x,y);
Although jQuery has a nice plugin that I would suggest using. Scroll Plugin
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow