How do I get the amount of scroll in a div tag using JavaScript? Please provide me with an example.
I don't want to use jQuery, only JavaScript.
This question is related to
javascript
html
scroll
you use the scrollTop attribute
var position = document.getElementById('id').scrollTop;
Source: Stackoverflow.com