Starting a page at a certain scroll point using window.scrollBy on body onload event handler - Javascript Browser Object Model

Javascript examples for Browser Object Model:Window scrollBy

Description

Starting a page at a certain scroll point using window.scrollBy on body onload event handler

Demo Code

ResultView the demo in separate window

<html>
 <head></head> 
 <body onload="window.scrollBy(0,100)"> 
  <div style="height:300px;">
    Some text //from w  ww.jav  a2  s.  c o m
  </div> 
  <div style="height:900px;">
    Some text 2 
  </div>  
 </body>
</html>

Related Tutorials