JavaScript прокрутите вниз
window.scrollTo(300, 500); //X=300 and Y=500
Long Lapwing
window.scrollTo(300, 500); //X=300 and Y=500
scroll function
window.scroll({
top: 0,
left: 0,
behavior: 'smooth'
});
window.scroll(x-coord, y-coord)
window.scroll(options)
const scrollToTop = () => {
const scrollTopButton = document.getElementById('scrollTopButton');
scrollTopButton.addEventListener('click', () => {
window.scrollTo(0, document.body.scrollHeight);
});
};