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.
you use the scrollTop attribute
var position = document.getElementById('id').scrollTop;