tags:

views:

545

answers:

2

Any idea what, if any, difference there is between window.scroll(x, y) and window.scrollTo(x, y) [not talking about jQuery]?

Also any ideas as to which browsers support which? Thanks

+4  A: 

There are no differences: https://developer.mozilla.org/en/DOM/window.scroll

As far as I know, all major browsers support both.

Andreas Bonini
A: 

There is scrollTo, scroll, and scrollBy! Apparently there is no standard covering this functionality so all Browsers may not implement it the same.

0A0D
`scrollBy` is unlike the others in that it scrolls relative to the current position.
Doug Neiner
Ok, thanks - I did not know that and the MDC does not state it
0A0D