DOM:window.scrollTo
From MDC
Contents |
[edit] Summary
Scrolls to a particular set of coordinates in the document.
[edit] Syntax
window.scrollTo(x-coord, y-coord)
[edit] Parameters
x-coordis the pixel along the horizontal axis of the document that you want displayed in the upper left.y-coordis the pixel along the vertical axis of the document that you want displayed in the upper left.
[edit] Example
window.scrollTo(0, 1000);
[edit] Notes
This function is effectively the same as window.scroll. For relative scrolling, see window.scrollBy, window.scrollByLines, and window.scrollByPages.
[edit] Specification
DOM Level 0. Not part of specification.