I have a div with overflow: scroll; And I would like to put a button. When you press it, the content of the div scrolls.
overflow: scroll;
div
Something like:
You can try this:
function scrollDiv(){ document.getElementById("d").scrollTop += 100; document.getElementById("d").scrollLeft += 100; }