Reset scroll position of text to top

scrolling

(Teo) #1

Hi,
I have a text element will scroll bars.
After I scroll down, is there a way to instantly reset the scrolling to its initial (top) position ?
Thanks.


(Hans-Gerd Cla├čen) #2
element.scrollTop = 0

(Teo) #3

Many thanks !! (should have thought of it)