I’m having trouble implementing a text area scroller: “button_scroller.html” shows the original code working as it should - when you get to the bottom of the list the scrolling automatically stops.
“scroll_text.html” is my working version. Click on a menu item to see its corresponding list. This one will keep scrolling indefinitely - why? Also, I’ve been trying to implement an addition: when you click on a menu item the scrolling text area should return to the top of the text area, but adding -
document.getElementById(id).style.scrollTop = 0;
to the javascript isn’t working. How should this be implemented? Thanks for any help.