I have a textarea that is being dynamically reloaded as user input is being sent in. It refreshes itself every couple seconds. When the amount of text in this textarea exceeds the size of the textarea, a scroll bar appears. However the scroll bar isn't really usable because if you start scrolling down, a couple seconds later the textarea refreshes and brings the scroll bar right back up to the top. I want to set the scroll bar to by default show the bottom most text. Anyone have an idea of how to do so?
Javascript – How to set textarea scroll bar to bottom as a default
cssjavascriptscrolltextarea
Related Topic
- Html – How to align content of a div to the bottom
- Javascript – Set a default parameter value for a JavaScript function
- Css – Hiding the scroll bar on an HTML page
- Html – How to disable the resizable property of a textarea
- Javascript – How to have a textarea to keep scrolled to the bottom when updated
- Html – Hide scroll bar, but while still being able to scroll
Best Answer
pretty simple, in vanilla javascript: