HTML DOM Element scrollLeft
HTML DOM Element scrollLeft Property
The scrollLeft property is used to either set or return the number of pixels an element content is scrolled horizontally.
Syntax:-
Its syntax is:- element.scrollLeft OR element.scrollLeft = pixels
Return:-
Its return is:- number of pixels the element content is scrolled horizontally
Further Explanation:-
Value | Description |
pixels | The number of pixels the element content is scrolled horizontally. |