How to scroll page to a custom location
Posted
by Rajat
on Stack Overflow
See other posts from Stack Overflow
or by Rajat
Published on 2010-04-08T23:18:31Z
Indexed on
2010/04/08
23:23 UTC
Read the original article
Hit count: 530
JavaScript
|dom
Hi,
I am looking to scroll the page to a particular location.Something like this:
function scrollTo(y){
document.body. some-property = y;
}
I am looking to solve this without using any libraries.
I know scrollTop works in some browsers but I tried it if FF 3.6 and IE 8 and it doesn't work.
Does anyone know how to complete that function ?
© Stack Overflow or respective owner