SyntaxFix
Write A Post
Hire A Developer
Questions
You need to use the scrollTop property.
scrollTop
document.getElementById('box').scrollTop