Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at


scrollByPixels( pixels )
Return type: no return value
Scrolls the contents of the arrowscrollbox by a certain number of pixels. Use a positive value as the pixels argument to scroll forward that many pixels, or a negative value to scroll backward that many pixels.

Document Tags and Contributors

 Contributors to this page: Sheppy, ethertank, Marsf
 Last updated by: Sheppy,