1let scrollLeft = window.pageXOffset || document.documentElement.scrollLeft,
2scrollTop = window.pageYOffset || document.documentElement.scrollTop;Code language: JavaScript (javascript)
1document.documentElement.scrollTop = document.body.scrollTop = 1200;
2document.documentElement.scrollLeft = document.body.scrollLeft = 600;Code language: JavaScript (javascript)