This property sets or retrieves the distance between the left edge of the object and the leftmost portion of the object that is currently visible in the window.
Scroll the DIV horizontally and click anywhere inside the DIV to get the scrollLeft value.
The text in this box has been placed inside a SPAN that is wider ( 350px ) than the DIV that contains it ( the DIV has a width of only 300px ). The overflow is set to scroll. Because the length of the text is greater than the DIV element's area, horizontal and vertical scrolling are forced. Click anywhere in the box to obtain the amount of scrolling to the left the text has done.
View Source Exit
© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.