topical media & game development

talk show tell print

#javascript-code-19-scrollTo.js / js



  // If you wanted to scroll the browser up to the top of the browser, you could do:
  window.scrollTo(0,0);
  
  // If you wanted to scroll to the position of a specific element, you could do:
  window.scrollTo( 0, pageY( document.getElementById(“body”) ) );
  
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.