I have a web site, and I would like to control the scroll bar.
I’d like to be able to say, use a method like scroll_bar_set($height) (if such functions exist)…
I guess it should be javascript or jquery.
Can anybody tell me ?
Thx in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you don’t want to add jQuery just for this basic function. Then try using
window.scrollTo(xpos,ypos);
you can put this on a js function like so
You can also pass % in to the values window.scrollTo(0,100%);