Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

html scroll div to top

var myDiv = document.getElementById('containerDiv');
myDiv.innerHTML = variableLongText;
myDiv.scrollTop = 0;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #html #scroll #div #top
ADD COMMENT
Topic
Name
1+9 =