I am really new and my last question wasn't correct so here I go again. I was able to get the scroll to work to go to the top and bottom but right now it just snaps there and back. I want to give it a movement. Any help would be appreciated.
Here is my code:
document.getElementById('sur2').onclick = function () {
document.getElementById('pt1').style.display='block';
document.getElementById('pt2').style.display='none';
window.scroll(0,0);
}
document.getElementById('sur1').onclick = function () {
document.getElementById('pt1').style.display='none';
document.getElementById('pt2').style.display='block';
window.scroll(0,5000);
}