Chrome Extension

Scroll to the bottom of a div using Javascript

The code can be used to scroll to the bottom of a div using javascript. We are using scrollTop and scrollHeight properties of elements for this.
var my_div = document.getElementById("my_div");
my_div.scrollTop = my_div.scrollHeight;
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool
Was this helpful?