+ 2
How do you scroll to the bottom of a text area in javascript?
I've tried multiple times to do this but it doesnt seem to work. All I see online is about a scroll to top of page but nothing about scrolling to the bottom of an object, preferably a textarea https://code.sololearn.com/WbtvW2Ih2bgJ/?ref=app
1 Resposta
+ 1
Okay, found out how to scroll to the exact bottom.
But thanks
for(var i = 0; i < 99999; i++) {
event.preventDefault(); document.getElementById("log_").scrollIntoView({ block:"end"});
}