function scrollDiv(){ document.getElementById("d").scrollTop += 100; document.getElementById("d").scrollLeft += 100; }