how to set scroll to bottom jscrollpane

58

how to set scroll to bottom jscrollpane -

JScrollBar vertical = scrollPane.getVerticalScrollBar();
vertical.setValue(vertical.getMaximum());

javascript auto scroll on overflow to bottom -

window.setInterval(function() {
  var elem = document.getElementById('data');
  elem.scrollTop = elem.scrollHeight;
}, 5000);

Comments

Submit
0 Comments