SyntaxFix
Write A Post
Hire A Developer
Questions
var myDiv = document.getElementById('containerDiv'); myDiv.innerHTML = variableLongText; myDiv.scrollTop = 0;
See the scrollTop attribute.
scrollTop