You need to use the scrollTop
property.
document.getElementById('box').scrollTop
More Related Contents:
- How do I move the + sign to the left?
- how to press keyboard with Jquery/ Javascript [duplicate]
- Making a Mobile friendly website [closed]
- How can I modify with css an image appended with javascript?
- Using jQuery to center a DIV on the screen
- jQuery: Get height of hidden element in jQuery
- Difference between Relative path and absolute path in javascript
- Keep overflow div scrolled to bottom unless user scrolls up
- How to make HTML element resizable using pure Javascript?
- Bootstrap 4 Dropdown Menu not working?
- How to partition input field to appear as separate input fields on screen?
- :touch CSS pseudo-class or something similar?
- Possible to disable @media queries or force a resolution? Reason: Allow an iphone to see the desktop site?
- Check if element is between 30% and 60% of the viewport
- How to vertically align all text in CSS?
- DIV Vertical Scroll bar on left
- How do I detect the inherited background-color of an element using jQuery/JS?
- CSS /JS to prevent dragging of ghost image?
- jQuery: Change element type from hidden to input
- jQuery Popup Bubble/Tooltip [closed]
- How do I make a div full screen?
- Best way to do a split pane in HTML [closed]
- How to toggle class using pure javascript in html
- Header message just like at Stack Overflow
- Retrieve width/height of a css3 scaled element
- Is there a javascript equivalent to using @media query? [duplicate]
- How to make a submit button display as a link?
- jQuery when element becomes visible [duplicate]
- Is it possible to disable Ctrl + F of find in page?
- Difference between jQuery’s .hide() and setting CSS to display: none