Javascript Reference
Categories: window

javascript window scrollByLines( ), scrollByPages( )

@April 21, 2008, 10:54 a.m.
scrollByLines( ), scrollByPages( ) Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM n/a  

scrollByLines(intervalCount) scrollByPages(intervalCount)

  

Scroll the document in the window downward (positive value) or upward (negative value) by the increment of lines or pages. The methods perform the same actions as the user clicking on the arrow and "page" regions of the vertical scrollbar, respectively.

 
Parameters
 
  • Positive or negative count of the change in vertical scroll position. Units are governed by the method choice (lines or pages).
 
Returned Value

None.


Powered by Linode.